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 2018-09-06 13:40:11 +0200, Vincent Lefevre wrote:
> On 2018-09-05 15:40:47 +0100, Peter Stephenson wrote:
> > 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.
> 
> No, this doesn't solve the problem for all commands, e.g. with:
> 
> sww () {
>         svnwrapper diff "$@" | wdiff -n -w $'\033[30;41m' -x $'\033[0m' -y $'\033[30;42m' -z $'\033[0m' -d
> }
> 
> where svnwrapper and wdiff are external command.

Sorry, this may be a different problem, this time specific to "less",
but also introduced in zsh 5.6 (if not a bit before).

  echo | { (sleep 1; sww) | tput init; }
  echo | { (sleep 1; sww) | more; }
  echo | { (sleep 1; sww) | less; }

are all fine with zsh 5.3.1, but the 3rd one (with "less") yields

zsh: suspended (tty output)  { ( sleep 1; sww; ) | less; }

after quitting "less".

-- 
Vincent Lefèvre <vincent@xxxxxxxxxx> - 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)



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