diff options
author | jilles <jilles@FreeBSD.org> | 2010-03-14 14:24:35 +0000 |
---|---|---|
committer | jilles <jilles@FreeBSD.org> | 2010-03-14 14:24:35 +0000 |
commit | d88c6b27847cfb6d2e02b9178df93eba8f67a461 (patch) | |
tree | 60d32e3f85931ad6ed822e0fcbfb662f567e83f9 /sys/netinet/udp_usrreq.c | |
parent | b9152e6b95f7273c5f4ab0f40fb6270c9220d2eb (diff) | |
download | FreeBSD-src-d88c6b27847cfb6d2e02b9178df93eba8f67a461.zip FreeBSD-src-d88c6b27847cfb6d2e02b9178df93eba8f67a461.tar.gz |
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
Diffstat (limited to 'sys/netinet/udp_usrreq.c')
0 files changed, 0 insertions, 0 deletions