Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Ctrl-\ while executing a pipeline made zsh quit
- X-seq: zsh-workers 50104
- From: Vincent Lefevre <vincent@xxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Re: Ctrl-\ while executing a pipeline made zsh quit
- Date: Tue, 26 Apr 2022 11:07:22 +0200
- Archived-at: <https://zsh.org/workers/50104>
- In-reply-to: <CAH+w=7YXMTPgX-_pBqy_nE7vRg2bcGpu6gyBUA1r1jo4fQ3LNA@mail.gmail.com>
- List-id: <zsh-workers.zsh.org>
- Mail-followup-to: zsh-workers@xxxxxxx
- References: <20220426003649.GA100943@zira.vinc17.org> <CAH+w=7Z2CG4wWgV31MLLtM64BCfu2Dt-N6oYzb8krY+wvCrqyw@mail.gmail.com> <20220426030002.GC100943@zira.vinc17.org> <CAH+w=7YXMTPgX-_pBqy_nE7vRg2bcGpu6gyBUA1r1jo4fQ3LNA@mail.gmail.com>
On 2022-04-25 21:05:11 -0700, Bart Schaefer wrote:
> On Mon, Apr 25, 2022 at 8:00 PM Vincent Lefevre <vincent@xxxxxxxxxx> wrote:
> >
> > > I did discover that if "less" exits with an error, the whole pipeline
> > > becomes unkillable with either INT or QUIT; the shell is hung until
> > > the left side exits.
> >
> > If "less" really exits, how could this happen?
>
> When I couldn't replicate your problem, I thought perhaps I was
> running the mless function the wrong way, so I did this:
>
> ( zsh -fc 'print a few words; /bin/sleep 30' ) | mless -
>
> This causes less to exit with a no-such-file error, at which point all
> signals were ignored and no prompt returned until the "sleep 30"
> finished.
I wasn't using "mless" in that way, though this may be related to
what I got. Anyway, I think that this is a bug in zsh; this issue
is also reproducible with "head -n 1" instead of "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