From: Peter Stephenson <pws@cambridgesiliconradio.com>
To: zsh-workers@sunsite.auc.dk (Zsh hackers list)
Subject: Re: PATCH: Re: Multi-redirection bug
Date: Tue, 11 Jul 2000 18:18:57 +0100 [thread overview]
Message-ID: <0FXJ00I0DMRLRK@la-la.cambridgesiliconradio.com> (raw)
In-Reply-To: "Your message of Tue, 11 Jul 2000 17:59:21 BST." <0FXJ00MQFLUXDK@la-la.cambridgesiliconradio.com>
I wrote:
> The SIGPIPE is inevitable, but the shell usually doesn't exit on
> it, so there may be something else wrong.
This may be nonsense.
% (echo foo; sleep 1; echo bar >& 2) | (read >/dev/null)
bar
% (echo foo; sleep 1; echo foo2; echo bar >& 2) | (read >/dev/null)
% print $pipestatus
141 0
The sleep is necessary so that the read process has really exited (`by a
sleep to say we end the heartache' etc.). In that case the shell process
does get SIGPIPE (13 on Solaris + 128 for a signal) and exit.
Still, it worries me that it can be so drastically affected by the
behaviour of trivial subprocesses like the multios helpers.
--
Peter Stephenson <pws@cambridgesiliconradio.com>
Cambridge Silicon Radio, Unit 300, Science Park, Milton Road,
Cambridge, CB4 0XL, UK Tel: +44 (0)1223 392070
prev parent reply other threads:[~2000-07-11 17:19 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20000711155201.A17330@vin.ens-lyon.fr>
2000-07-11 16:59 ` Peter Stephenson
2000-07-11 17:18 ` Peter Stephenson [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=0FXJ00I0DMRLRK@la-la.cambridgesiliconradio.com \
--to=pws@cambridgesiliconradio.com \
--cc=zsh-workers@sunsite.auc.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).