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:
Jilles Tjoelker 2010-12-27 23:56:03 +00:00
parent 2b3e1fb085
commit a355eb9e1a
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=216747

View File

@ -0,0 +1,4 @@
# $FreeBSD$
exec 2>/dev/null
! y=$(: </var/empty/nonexistent)