sh: Add a variation on builtins/eval4.0 where the cmdsubst returns 0.
This commit is contained in:
parent
5ad7e64900
commit
87887877ec
5
tools/regression/bin/sh/builtins/eval6.0
Normal file
5
tools/regression/bin/sh/builtins/eval6.0
Normal file
@ -0,0 +1,5 @@
|
||||
# $FreeBSD$
|
||||
|
||||
# eval should preserve $? from command substitutions when starting
|
||||
# the parsed command.
|
||||
[ $(false; eval 'echo $?' $(:)) = 0 ]
|
Loading…
Reference in New Issue
Block a user