Fixes for the Trim.args() for ?e ##shell

This commit is contained in:
pancake 2022-04-13 10:14:15 +02:00
parent cb097fe79b
commit d4a7c58bd0
3 changed files with 5 additions and 7 deletions

View File

@ -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
{

View File

@ -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

View File

@ -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