zsh-workers
 help / color / mirror / code / Atom feed
* use of "less" in function and interrupt
@ 2016-07-20 11:36 Vincent Lefevre
  2016-07-20 12:21 ` Peter Stephenson
  0 siblings, 1 reply; 6+ messages in thread
From: Vincent Lefevre @ 2016-07-20 11:36 UTC (permalink / raw)
  To: zsh-workers

With zsh 5.2, if I type:

zira% sleep 5 | less

and Ctrl-C immediately after, this interrupts the "sleep 5" and
everything is fine ("less" ignores the SIGINT).

But if I use a function:

zira% tless() { less "$@"; }
zira% sleep 5 | tless

then "less" is left stopped in background after I type a key.

bash and mksh do not have this problem (Debian's ksh93 93u+20120801-2
is completely broken as "less" is immediately put in background).

-- 
Vincent Lefèvre <vincent@vinc17.net> - 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)


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2016-07-25 13:40 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-07-20 11:36 use of "less" in function and interrupt Vincent Lefevre
2016-07-20 12:21 ` Peter Stephenson
2016-07-21  3:40   ` Bart Schaefer
2016-07-21 18:51     ` Vincent Lefevre
2016-07-23 17:02     ` Bart Schaefer
2016-07-25 13:40       ` Vincent Lefevre

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).