1
0
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:
Jilles Tjoelker 2013-01-13 22:35:51 +00:00
parent 08ecf0cc41
commit e1e1f0e44f
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=245392

View File

@ -0,0 +1,5 @@
# $FreeBSD$
f() { return 3; }
f
[ `echo $?` = 3 ]