sh: Add a test for a corner case in eval that already works correctly.
This commit is contained in:
parent
0586b71665
commit
2f1480605c
5
tools/regression/bin/sh/builtins/eval4.0
Normal file
5
tools/regression/bin/sh/builtins/eval4.0
Normal file
@ -0,0 +1,5 @@
|
||||
# $FreeBSD$
|
||||
|
||||
# eval should preserve $? from command substitutions when starting
|
||||
# the parsed command.
|
||||
[ $(eval 'echo $?' $(false)) = 1 ]
|
Loading…
x
Reference in New Issue
Block a user