Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: SIGPIPE echoing to fifo exits zsh



On Tue, 15 Jan 2013 18:53:41 -0800
Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
> Hrm.  If this were a script instead of an interactive command at the
> prompt, the correct behavior would in fact be to exit on SIGPIPE.  I
> don't know offhand if that's also (per POSIX spec for example) correct
> in this instance.

I tried a few shells and got a roughly 50-50 split.  As far as I could
make out, in fact, bash behaved differently depending whether or not
invoked as "sh", but I haven't looked further.

pws



Messages sorted by: Reverse Date, Date, Thread, Author