zsh-workers
 help / color / Atom feed
From: Sebastian Gniazdowski <sgniazdowski@gmail.com>
To: Zsh hackers list <zsh-workers@zsh.org>
Subject: Re: send-break or EOF exit the shell in "vared"
Date: Mon, 10 Feb 2020 18:03:37 +0100
Message-ID: <CAKc7PVAhZ3tH0bz=NzmdZZ=6mpoNwd0TxQgmksjjGxJzUHKiog@mail.gmail.com> (raw)
In-Reply-To: <20200209083316.axjj6nf7hndb7wqw@chazelas.org>

[-- Attachment #1: Type: text/plain, Size: 913 bytes --]

On Sun, 9 Feb 2020 at 09:34, Stephane Chazelas <stephane@chazelas.org>
wrote:

> For context, that's still about trying to answer that "how to
> add a timeout to `vared`" question at
>
> https://unix.stackexchange.com/questions/565718/zsh-timeout-for-vared-builtin
>
> I was thinking: vared uses zle, zle is fully programmable, that
> shouldn't be too difficult. But so far I've not been able to do
> it without a subshell and I ran in a few unexpected behaviours.
>
> In:
>
> zsh -c 'vared -c foo; echo $? $foo'
>
> If I press ^G (send-break widget), that exits the shell (with
> status 0), not just "vared".
>

I've had a somewhat similar problem:
https://www.zsh.org/mla/workers/2019/msg00721.html

-- 
Sebastian Gniazdowski
News: https://twitter.com/ZdharmaI
IRC: https://kiwiirc.com/client/chat.freenode.net:+6697/#zinit
<https://kiwiirc.com/client/chat.freenode.net:+6697/#zplugin>
Blog: http://zdharma.org

      parent reply index

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-02-09  8:33 Stephane Chazelas
2020-02-09  9:09 ` Stephane Chazelas
2020-02-10 17:03 ` Sebastian Gniazdowski [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAKc7PVAhZ3tH0bz=NzmdZZ=6mpoNwd0TxQgmksjjGxJzUHKiog@mail.gmail.com' \
    --to=sgniazdowski@gmail.com \
    --cc=zsh-workers@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

zsh-workers

Archives are clonable: git clone --mirror http://inbox.vuxu.org/zsh-workers

Example config snippet for mirrors

Newsgroup available over NNTP:
	nntp://inbox.vuxu.org/vuxu.archive.zsh.workers


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git