Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [BUG] Ctrl-C stops working after process substitution
- X-seq: zsh-workers 43140
- From: Sebastian Gniazdowski <sgniazdowski@xxxxxxxxx>
- To: Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx>
- Subject: Re: [BUG] Ctrl-C stops working after process substitution
- Date: Wed, 4 Jul 2018 19:07:17 +0200
- Cc: Zsh hackers list <zsh-workers@xxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=YJIBZSEzUCfCwWGxCU3ti9200bVc48wbieDyHdtcDzs=; b=fsJmjkb3VdLyhjJIH/Hn6J5nw2Fro4op9yutf8p9Us8xtO6DIbPFmrXvc5VMjroBWi 4x+s5PvI7XEAC2qMpIjNYh9p0IrhKZPyvQIwCr4M23R8wl0ir6J1o+aFdQVNrABdeqsq iLxmOPQaVC6oTMizf0kJGBhMVpu8L596EMcyCjVd79sXDUqAdhk5qFtC5oBYxreTmAyd vP5+v4X1Tk7gL8+TApUzZlwWlJ9r725ex2dE/eoyjeeGQh8GqJFUjtJWv1Ew8YX6BQdB k3MY1vD0LcpVNd9/qtCnWkEfHKix31u+NxMvbY88kAqaICajIHjMlsG3ekOUNksHonDw Q61w==
- In-reply-to: <1530706152.948208.1429754600.66E3F94F@webmail.messagingengine.com>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- List-unsubscribe: <mailto:zsh-workers-unsubscribe@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <CAKc7PVAkph0UJGRojp3+H2VVYOHWsTCLQo9iONh0TnuvMwL_=Q@mail.gmail.com> <1530706152.948208.1429754600.66E3F94F@webmail.messagingengine.com>
On 4 July 2018 at 14:09, Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx> wrote:
> Works for me in master.
True, here is code that yields Ctrl-C problem even in zsh -f:
For zsh -f:
noop() { IFS='' read line; MYFD="$1"; zle -F "$1"; exec {MYFD}<&-; };
exec {MYFD}< <( echo a test ); zle -F -w $MYFD noop
After executing, try Up cursor to obtain some command at prompt (or
just enter "abcd") and press Ctrl-C. First will be ignored, second one
will work. This differs from non-zsh-f behavior where any Ctrl-C will
be ignored. However in zsh -f situation, what's very interesting is
that the second-Ctrl-C behavior occurs for any number of following
commands.
--
Sebastian Gniazdowski
News: https://twitter.com/ZdharmaI
IRC: https://kiwiirc.com/client/chat.freenode.net:+6697/#zplugin
Messages sorted by:
Reverse Date,
Date,
Thread,
Author