hush: add support for special vars in braces

Some people like to use ${?} rather than $?, so make sure we support all
the special single char vars that use this form.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
This commit is contained in:
Mike Frysinger
2009-06-01 14:09:09 -04:00
parent ff64fb9e31
commit dc3bc40578
7 changed files with 9 additions and 8 deletions

View File

@@ -1,4 +1,4 @@
# reject invalid vars
"$THIS_SH" -c 'echo ${1q}'
"$THIS_SH" -c 'echo ${&}'
"$THIS_SH" -c 'echo ${$}'
#"$THIS_SH" -c 'echo ${$}' -- this is valid as it's the same as $$