diff options
author | jilles <jilles@FreeBSD.org> | 2010-08-01 22:39:07 +0000 |
---|---|---|
committer | jilles <jilles@FreeBSD.org> | 2010-08-01 22:39:07 +0000 |
commit | 2f1480605ce75a6f347918c2df611a8f628bc3d5 (patch) | |
tree | ff7c3578516fb12b79f0e5d7567ea2ae846aee1c /tools | |
parent | 0586b716659bb515e8c93b3478d8c019d6c694f3 (diff) | |
download | FreeBSD-src-2f1480605ce75a6f347918c2df611a8f628bc3d5.zip FreeBSD-src-2f1480605ce75a6f347918c2df611a8f628bc3d5.tar.gz |
sh: Add a test for a corner case in eval that already works correctly.
Diffstat (limited to 'tools')
-rw-r--r-- | tools/regression/bin/sh/builtins/eval4.0 | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/regression/bin/sh/builtins/eval4.0 b/tools/regression/bin/sh/builtins/eval4.0 new file mode 100644 index 0000000..67da2f5 --- /dev/null +++ b/tools/regression/bin/sh/builtins/eval4.0 @@ -0,0 +1,5 @@ +# $FreeBSD$ + +# eval should preserve $? from command substitutions when starting +# the parsed command. +[ $(eval 'echo $?' $(false)) = 1 ] |