Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Multio / process substitution bug
- X-seq: zsh-workers 29314
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Multio / process substitution bug
- Date: Wed, 18 May 2011 07:43:34 -0700
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
Given the following which you probably recognize from zsh-users:
alias -g file_err='>(sed s/^/file_err:/)'
alias -g file_out='>(sed s/^/file_out:/)'
alias -g file_mix='>(sed s/^/file_mix:/)'
outanderr() { print STDOUT; print -u2 STDERR }
The following command:
torch% outanderr 1>&1 >file_out 2>&2 2>file_err >& file_mix
STDOUT
file_out:STDOUT
STDERR
file_err:STDERR
is now hung forever waiting in signal_suspend() for the file_mix process
to exit. Keyboard signals are disabled so the only way to interrupt it
is to kill it from another shell.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author