sh: Add a testcase for cmdsubst errors that already works properly.
If a command substitution consists of one special builtin and there is a redirection error, this should not abort the outer shell. It was fixed in r201366 by ignoring special builtin properties for command substitutions consisting of one builtin.
This commit is contained in:
parent
2b3e1fb085
commit
a355eb9e1a
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=216747
4
tools/regression/bin/sh/expansion/cmdsubst4.0
Normal file
4
tools/regression/bin/sh/expansion/cmdsubst4.0
Normal file
@ -0,0 +1,4 @@
|
||||
# $FreeBSD$
|
||||
|
||||
exec 2>/dev/null
|
||||
! y=$(: </var/empty/nonexistent)
|
Loading…
Reference in New Issue
Block a user