sh: Add a variation on builtins/eval4.0 where the cmdsubst returns 0.
This commit is contained in:
parent
5ad7e64900
commit
87887877ec
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=249220
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