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

Re: less with subprocess



Hm, why does this work in bash but not in zsh?

  ( trap "" INT; sleep 10; i=1; while true; do echo $i; i=$[i+1]; sleep 1; done ) | less

With bash, the ctrl-c is always only handles by less.  (But less
(version 487) won't react to it before it has received a full
terminal page of input.)

In zsh, pressing ctrl-c at any time kills the subshell.

It works fine with "normal" commands though:

  ( trap "" INT; ls -lR / 2> /dev/null ) | less

Ciao

Dominik ^_^  ^_^

--

Dominik Vogt




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