Date: Sun, 14 Mar 2010 14:24:35 +0000 (UTC) From: Jilles Tjoelker <jilles@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/bin/sh eval.c src/tools/regression/bin/sh/builtins command11.0 src/tools/regression/bin/sh/errors redirection-error6.0 Message-ID: <201003141430.o2EEU4s7051556@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
jilles 2010-03-14 14:24:35 UTC
FreeBSD src repository
Modified files:
bin/sh eval.c
Added files:
tools/regression/bin/sh/builtins command11.0
tools/regression/bin/sh/errors redirection-error6.0
Log:
SVN rev 205154 on 2010-03-14 14:24:35Z by jilles
sh: Do not abort on a redirection error on a compound command.
Redirection errors on subshells already did not abort the shell because
the redirection is executed in the subshell.
Other shells seem to agree that these redirection errors should not abort
the shell.
Also ensure that the redirections will be cleaned up properly in cases like
command eval '{ shift x; } 2>/dev/null'
Example:
{ echo bad; } </var/empty/x; echo good
Revision Changes Path
1.80 +42 -4 src/bin/sh/eval.c
1.1 +14 -0 src/tools/regression/bin/sh/builtins/command11.0 (new)
1.1 +12 -0 src/tools/regression/bin/sh/errors/redirection-error6.0 (new)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201003141430.o2EEU4s7051556>
