mirror of
https://github.com/radareorg/radare2.git
synced 2025-01-24 06:48:46 +00:00
Fixes for the Trim.args() for ?e ##shell
This commit is contained in:
parent
cb097fe79b
commit
d4a7c58bd0
@ -1088,9 +1088,9 @@ static int cmd_help(void *data, const char *input) {
|
||||
r_core_clippy (core, r_str_trim_head_ro (input + 1));
|
||||
break;
|
||||
case 'e': // "?e" echo
|
||||
#if SHELLFILTER
|
||||
r_str_trim_args ((char *)input);
|
||||
#endif
|
||||
if (input[1] == ' ' && (input[2] == '"' || input[2] == '\'')) {
|
||||
r_str_trim_args ((char *)input);
|
||||
}
|
||||
switch (input[1]) {
|
||||
case 'a': // "?ea hello world
|
||||
{
|
||||
|
@ -17,7 +17,7 @@ RUN
|
||||
NAME=escaping echoes
|
||||
FILE=-
|
||||
CMDS=<<EOF
|
||||
?e hello\@world\|pipe
|
||||
?e "hello\@world\|pipe"
|
||||
?e one\ntwo
|
||||
EOF
|
||||
EXPECT=<<EOF
|
||||
|
@ -167,9 +167,7 @@ RUN
|
||||
|
||||
NAME=hash comment and simple quote
|
||||
FILE=-
|
||||
CMDS=<<EOF
|
||||
?e 'before # after'
|
||||
EOF
|
||||
CMDS=?e 'before # after'
|
||||
EXPECT=<<EOF
|
||||
before # after
|
||||
EOF
|
||||
|
Loading…
x
Reference in New Issue
Block a user