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
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=249220

View File

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