sh: Add a variation on builtins/eval4.0 where the cmdsubst returns 0.

This commit is contained in:
Jilles Tjoelker 2013-04-06 22:30:46 +00:00
parent 5ad7e64900
commit 87887877ec

View File

@ -0,0 +1,5 @@
# $FreeBSD$
# eval should preserve $? from command substitutions when starting
# the parsed command.
[ $(false; eval 'echo $?' $(:)) = 0 ]