hush: handle empty execs
authorMike Frysinger <vapier@gentoo.org>
Sun, 18 Oct 2009 05:11:45 +0000 (01:11 -0400)
committerMike Frysinger <vapier@gentoo.org>
Sun, 18 Oct 2009 05:15:36 +0000 (01:15 -0400)
commit28736c36ca6a73864324296117ce26c9a23066dd
tree932f02ded50c8df7db9a7eea3063c2ed6c841fc1
parent69d9edc6f8387ed0ec4742a5de895b22b3910818
hush: handle empty execs

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>
shell/hush.c
shell/hush_test/hush-psubst/emptytick.right [new file with mode: 0644]
shell/hush_test/hush-psubst/emptytick.tests [new file with mode: 0755]