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:
parent
43648bc031
commit
a4a58620d3
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=205153
5
tools/regression/bin/sh/errors/redirection-error5.0
Normal file
5
tools/regression/bin/sh/errors/redirection-error5.0
Normal 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
|
Loading…
Reference in New Issue
Block a user