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

Re: zsh 5.6 regression: a pipe sometimes yields a TTOU signal



On Wed, 5 Sep 2018 15:37:04 +0200
Vincent Lefevre <vincent@xxxxxxxxxx> wrote:

> As a workaround, putting the middle command in { } can help a bit.
> For instance, instead of
> 
>   echo foo | { cat | less -+c -FX }
> 
> writing
> 
>   echo foo | { { cat } | less -+c -FX }
> 
> seems to avoid the issue most of the time, and
> 
>   echo foo | { { sleep 0.001; cat } | less -+c -FX }

If you don't actually care about where the command is run, I'd suggest
using ( ) instead of { } which should avoid the issue entirely ---
no "Rimmerworld" nested pipeline management as each pipe is in a
different shell.

pws



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