diff options
author | jilles <jilles@FreeBSD.org> | 2013-04-06 22:30:46 +0000 |
---|---|---|
committer | jilles <jilles@FreeBSD.org> | 2013-04-06 22:30:46 +0000 |
commit | 1024a8f1c34f17dab1fad8bf4e86fba8eb353b4b (patch) | |
tree | 0659b27aa0c7060338c7a0646852bae5e44d5cc1 /tools/regression | |
parent | 99a4c33f11797f887ab9b3d6f3e99d5ec300c11e (diff) | |
download | FreeBSD-src-1024a8f1c34f17dab1fad8bf4e86fba8eb353b4b.zip FreeBSD-src-1024a8f1c34f17dab1fad8bf4e86fba8eb353b4b.tar.gz |
sh: Add a variation on builtins/eval4.0 where the cmdsubst returns 0.
Diffstat (limited to 'tools/regression')
-rw-r--r-- | tools/regression/bin/sh/builtins/eval6.0 | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/regression/bin/sh/builtins/eval6.0 b/tools/regression/bin/sh/builtins/eval6.0 new file mode 100644 index 0000000..6752bb6 --- /dev/null +++ b/tools/regression/bin/sh/builtins/eval6.0 @@ -0,0 +1,5 @@ +# $FreeBSD$ + +# eval should preserve $? from command substitutions when starting +# the parsed command. +[ $(false; eval 'echo $?' $(:)) = 0 ] |