Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.bugs.dist > #1062948
| From | Vincent Lefevre <vincent@vinc17.net> |
|---|---|
| Newsgroups | linux.debian.bugs.dist |
| Subject | Bug#990264: Bug#990265: mksh: output error is not checked for some builtins when stdout is closed |
| Date | 2021-06-24 16:40 +0200 |
| Message-ID | <CtyGl-4bP-1@gated-at.bofh.it> (permalink) |
| References | <Ctujn-1ph-1@gated-at.bofh.it> <Cty3E-3IB-7@gated-at.bofh.it> <CtywG-48N-3@gated-at.bofh.it> <Ctu9I-1m3-5@gated-at.bofh.it> <CtywG-48N-3@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
retitle 990265 mksh: output error is not checked for some builtins
reopen 990265
thanks
On 2021-06-24 16:26:24 +0200, Vincent Lefevre wrote:
> Anyway, this was just an example. So, instead of a closed stdout,
> let's write to a full file system:
>
> $ pwd > /dev/full
> $ echo $?
> 0
> $ /bin/pwd > /dev/full
> /bin/pwd: write error: No space left on device
> $ echo $?
> 1
Another example (due to the "sleep 1", the "true" has normally
terminated when pwd is executed):
$ { trap '' PIPE; sleep 1; pwd; echo $? >&2; } | true
0
both with mksh and ksh93.
With dash:
$ { trap '' PIPE; sleep 1; pwd; echo $? >&2; } | true
sh: 1: pwd: pwd: I/O error
1
--
Vincent Lefèvre <vincent@vinc17.net> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)
Back to linux.debian.bugs.dist | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Bug#990265: mksh: output error is not checked for some builtins Vincent Lefevre <vincent@vinc17.net> - 2021-06-24 12:00 +0200
Bug#990264: Bug#990265: mksh: output error is not checked for some builtins when stdout is closed Thorsten Glaser <tg@mirbsd.de> - 2021-06-24 16:00 +0200
Bug#990264: Bug#990265: mksh: output error is not checked for some builtins when stdout is closed Vincent Lefevre <vincent@vinc17.net> - 2021-06-24 16:30 +0200
Bug#990264: Bug#990265: mksh: output error is not checked for some builtins when stdout is closed Vincent Lefevre <vincent@vinc17.net> - 2021-06-24 16:40 +0200
Bug#990264: Bug#990265: mksh: output error is not checked for some builtins when stdout is closed Thorsten Glaser <tg@mirbsd.de> - 2021-06-24 17:20 +0200
Bug#990264: Bug#990265: mksh: output error is not checked for some builtins when stdout is closed Anuradha Weeraman <anuradha@debian.org> - 2021-06-27 18:20 +0200
Bug#990264: Bug#990265: Bug#990264: Bug#990265: mksh: output error is not checked for some builtins when stdout is closed Thorsten Glaser <tg@mirbsd.de> - 2021-06-27 19:40 +0200
Bug#990264: Bug#990265: mksh: output error is not checked for some builtins when stdout is closed Vincent Lefevre <vincent@vinc17.net> - 2021-06-27 23:30 +0200
Bug#990264: Bug#990265: mksh: output error is not checked for some builtins when stdout is closed Thorsten Glaser <tg@mirbsd.de> - 2021-06-27 23:50 +0200
Bug#990265: utilities and write errors mirabilos <tg+ml@mirbsd.org> - 2021-06-30 03:00 +0200
Bug#990265: utilities and write errors Vincent Lefevre <vincent-opgr@vinc17.net> - 2021-06-30 03:30 +0200
Bug#990265: utilities and write errors Thorsten Glaser <tg@mirbsd.de> - 2021-06-30 04:10 +0200
csiph-web