1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-18 10:35:55 +00:00

sh: Add test for redirection error on subshell (should not abort).

This commit is contained in:
Jilles Tjoelker 2010-03-14 13:51:12 +00:00
parent 43648bc031
commit a4a58620d3
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=205153

View File

@ -0,0 +1,5 @@
# $FreeBSD$
# A redirection error on a subshell should not abort the shell.
exec 2>/dev/null
( echo bad ) </var/empty/x
exit 0