diff options
author | Jilles Tjoelker <jilles@FreeBSD.org> | 2012-12-12 22:01:10 +0000 |
---|---|---|
committer | Jilles Tjoelker <jilles@FreeBSD.org> | 2012-12-12 22:01:10 +0000 |
commit | d6d66cfc004b0fbdfe2906faf08b530facb704a3 (patch) | |
tree | 62b574be073036de48cb7bc28e7e4aa2b57e010d /tools | |
parent | 9d93dba489ccb26b20e99c199ac97e15f05dbcb2 (diff) | |
download | src-d6d66cfc004b0fbdfe2906faf08b530facb704a3.tar.gz src-d6d66cfc004b0fbdfe2906faf08b530facb704a3.zip |
sh: Detect and flag write errors on stdout in builtins.
If there is a write error on stdout, a message will be printed (to stderr)
and the exit status will be changed to 2 if it would have been 0 or 1.
PR: bin/158206
Notes
Notes:
svn path=/head/; revision=244162
Diffstat (limited to 'tools')
-rw-r--r-- | tools/regression/bin/sh/errors/write-error1.0 | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/regression/bin/sh/errors/write-error1.0 b/tools/regression/bin/sh/errors/write-error1.0 new file mode 100644 index 000000000000..fcb52e74178c --- /dev/null +++ b/tools/regression/bin/sh/errors/write-error1.0 @@ -0,0 +1,3 @@ +# $FreeBSD$ + +! echo >&- 2>/dev/null |