mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-22 11:17:19 +00:00
sh: Add testcase that $? is preserved into a simple command substitution.
The test builtins/trap6.0 already uses this but having it separate eases diagnosis if this would break.
This commit is contained in:
parent
08ecf0cc41
commit
e1e1f0e44f
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=245392
5
tools/regression/bin/sh/expansion/cmdsubst16.0
Normal file
5
tools/regression/bin/sh/expansion/cmdsubst16.0
Normal file
@ -0,0 +1,5 @@
|
||||
# $FreeBSD$
|
||||
|
||||
f() { return 3; }
|
||||
f
|
||||
[ `echo $?` = 3 ]
|
Loading…
Reference in New Issue
Block a user