sh: Add a test for a corner case in eval that already works correctly.

This commit is contained in:
jilles 2010-08-01 22:39:07 +00:00
parent 0586b71665
commit 2f1480605c

View File

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