28736c36ca
Sometimes variable expansions yield empty strings, and if they happen to be a command someone wants to run like `$foo`, then hush currently segfaults. So handle `` and $(). Signed-off-by: Mike Frysinger <vapier@gentoo.org>
17 lines
312 B
Plaintext
Executable File
17 lines
312 B
Plaintext
Executable File
true; ``; echo $?
|
|
false; ``; echo $?
|
|
true; `""`; echo $?
|
|
false; `""`; echo $?
|
|
true; ` `; echo $?
|
|
false; ` `; echo $?
|
|
|
|
true; $(); echo $?
|
|
false; $(); echo $?
|
|
true; $(""); echo $?
|
|
false; $(""); echo $?
|
|
true; $( ); echo $?
|
|
false; $( ); echo $?
|
|
|
|
true; exec ''; echo $?
|
|
false; exec ''; echo $?
|