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:
@@ -5303,6 +5303,9 @@ static int handle_dollar(o_string *as_string,
|
||||
all_digits = true;
|
||||
goto char_ok;
|
||||
}
|
||||
/* They're being verbose and doing ${?} */
|
||||
if (i_peek(input) == '}' && strchr("$!?#*@_", ch))
|
||||
goto char_ok;
|
||||
}
|
||||
|
||||
if (expansion < 2
|
||||
|
Reference in New Issue
Block a user