diff options
author | jilles <jilles@FreeBSD.org> | 2010-03-14 13:51:12 +0000 |
---|---|---|
committer | jilles <jilles@FreeBSD.org> | 2010-03-14 13:51:12 +0000 |
commit | b9152e6b95f7273c5f4ab0f40fb6270c9220d2eb (patch) | |
tree | 0edd3271798f48f1e5f97a4f90ac23bdbbfa804f /tools | |
parent | a13f0a99423fe7a287aff093862a2ab3e6085c93 (diff) | |
download | FreeBSD-src-b9152e6b95f7273c5f4ab0f40fb6270c9220d2eb.zip FreeBSD-src-b9152e6b95f7273c5f4ab0f40fb6270c9220d2eb.tar.gz |
sh: Add test for redirection error on subshell (should not abort).
Diffstat (limited to 'tools')
-rw-r--r-- | tools/regression/bin/sh/errors/redirection-error5.0 | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/regression/bin/sh/errors/redirection-error5.0 b/tools/regression/bin/sh/errors/redirection-error5.0 new file mode 100644 index 0000000..1fcd47e --- /dev/null +++ b/tools/regression/bin/sh/errors/redirection-error5.0 @@ -0,0 +1,5 @@ +# $FreeBSD$ +# A redirection error on a subshell should not abort the shell. +exec 2>/dev/null +( echo bad ) </var/empty/x +exit 0 |