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:
@@ -0,0 +1,4 @@
|
||||
# $FreeBSD$
|
||||
|
||||
exec 2>/dev/null
|
||||
! y=$(: </var/empty/nonexistent)
|
||||
Reference in New Issue
Block a user