Skip to content

Remove the deprecated double-quote raw call ##shell - #26316

Merged
trufae merged 2 commits into
masterfrom
double-quote-call
Jul 21, 2026
Merged

Remove the deprecated double-quote raw call ##shell#26316
trufae merged 2 commits into
masterfrom
double-quote-call

Conversation

@trufae

@trufae trufae commented Jul 21, 2026

Copy link
Copy Markdown
Collaborator
  • Things like ""x wont work anymore, use 'x instead
  • Mark this if you consider it ready to merge
  • I've added tests (optional)
  • I wrote some lines in the book (optional)

Description

* Things like `""x` wont work anymore, use `'x` instead
Copilot AI review requested due to automatic review settings July 21, 2026 14:05

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR removes support for the deprecated "" “raw call” command prefix in radare2’s core command parser, and updates shell command tests to reflect the new behavior (leading "" is no longer treated as a special raw-call operator).

Changes:

  • Remove the deprecated "" raw-call handling and related help entries.
  • Introduce normalization that strips leading empty double-quotes so such inputs go through the normal parser.
  • Update test/db/cmd/shell to validate the new parsing behavior and nested substitution cases.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
libr/core/cmd.c Drops deprecated "" raw-call parsing, adds leading-"" stripping, and updates help text accordingly.
test/db/cmd/shell Replaces "" raw-call expectations with tests asserting normal parsing after leading empty double-quotes.

Comment thread libr/core/cmd.c
Comment on lines +3947 to +3948
int res = 1;
char *arg = strdup (cmd);
Copilot AI review requested due to automatic review settings July 21, 2026 14:48

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

Comment thread libr/core/cmd.c
Comment on lines +3968 to 3971
static void remove_leading_empty_quotes(char *cmd) {
while (r_str_startswith (cmd, "\"\"")) {
memmove (cmd, cmd + 2, strlen (cmd + 2) + 1);
}
@trufae
trufae merged commit fb9796e into master Jul 21, 2026
51 checks passed
@trufae
trufae deleted the double-quote-call branch July 21, 2026 15:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants