suppress shell expansion inside quoted strings
This commit is contained in:
parent
33b4b0c61a
commit
a8152fedab
2 changed files with 9 additions and 1 deletions
|
@ -374,7 +374,7 @@ grub_script_arglist_to_argv (struct grub_script_arglist *arglist,
|
||||||
|
|
||||||
case GRUB_SCRIPT_ARG_TYPE_DQSTR:
|
case GRUB_SCRIPT_ARG_TYPE_DQSTR:
|
||||||
case GRUB_SCRIPT_ARG_TYPE_SQSTR:
|
case GRUB_SCRIPT_ARG_TYPE_SQSTR:
|
||||||
if (grub_script_argv_append (&result, arg->str))
|
if (append (arg->str, 1))
|
||||||
goto fail;
|
goto fail;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
|
@ -31,3 +31,11 @@ echo foo -n
|
||||||
echo foo -n -e
|
echo foo -n -e
|
||||||
|
|
||||||
echo -------
|
echo -------
|
||||||
|
|
||||||
|
if test -n "$grubshell"; then insmod regexp; fi
|
||||||
|
|
||||||
|
echo '*'
|
||||||
|
echo "*"
|
||||||
|
|
||||||
|
foo="*"
|
||||||
|
echo "$foo"
|
||||||
|
|
Loading…
Reference in a new issue