diff options
author | Denys Vlasenko | 2018-04-05 14:41:21 +0200 |
---|---|---|
committer | Denys Vlasenko | 2018-04-05 14:41:21 +0200 |
commit | 41d8f1081378ec79586d59e7d2a31380b6f95577 (patch) | |
tree | 947c94f2d458ee834a8bb31986241af958cae853 /shell/hush_test/hush-redir/redir_exec1.tests | |
parent | 929a41d5770c0531f037c2e7db25bf98f9029c9e (diff) | |
download | busybox-41d8f1081378ec79586d59e7d2a31380b6f95577.zip busybox-41d8f1081378ec79586d59e7d2a31380b6f95577.tar.gz |
hush: fix corner cases with exec in empty expansions
Cases like these:
var=val exec >redir
var=val `` >redir
function old new delta
run_pipe 1701 1723 +22
redirect_and_varexp_helper 56 55 -1
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 1/1 up/down: 22/-1) Total: 21 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'shell/hush_test/hush-redir/redir_exec1.tests')
-rwxr-xr-x | shell/hush_test/hush-redir/redir_exec1.tests | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/shell/hush_test/hush-redir/redir_exec1.tests b/shell/hush_test/hush-redir/redir_exec1.tests new file mode 100755 index 0000000..290e1cb --- /dev/null +++ b/shell/hush_test/hush-redir/redir_exec1.tests @@ -0,0 +1,2 @@ +v=`echo First >&2` exec >/cant/be/created +echo One:$? |