Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
use of "less" in function and interrupt
- X-seq: zsh-workers 38896
- From: Vincent Lefevre <vincent@xxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: use of "less" in function and interrupt
- Date: Wed, 20 Jul 2016 13:36:33 +0200
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mail-followup-to: zsh-workers@xxxxxxx
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
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@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