From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=DKIM_ADSP_CUSTOM_MED, FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from primenet.com.au (ns1.primenet.com.au [203.24.36.2]) by inbox.vuxu.org (OpenSMTPD) with ESMTP id b5fd2d27 for ; Mon, 10 Feb 2020 17:04:14 +0000 (UTC) Received: (qmail 14275 invoked by alias); 10 Feb 2020 17:04:09 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: List-Unsubscribe: X-Seq: 45409 Received: (qmail 6479 invoked by uid 1010); 10 Feb 2020 17:04:09 -0000 X-Qmail-Scanner-Diagnostics: from mail-vs1-f65.google.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.102.1/25718. spamassassin: 3.4.2. Clear:RC:0(209.85.217.65):SA:0(-2.0/5.0):. Processed in 2.356493 secs); 10 Feb 2020 17:04:09 -0000 X-Envelope-From: sgniazdowski@gmail.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: pass (ns1.primenet.com.au: SPF record at _netblocks.google.com designates 209.85.217.65 as permitted sender) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=AY/TkLy627J78Y2BK54egyLrqn46bharCoVT50f9UlM=; b=rM48BBWi2tbWrQf5KhQE8kU1TDdzSyfksV7M8+Aoojyj0Rz44Hh0agykth38oSVeNg 30etMjn8IiN80N55gA9Q/sd19I2+JtmZ5rWbGOWMsW/vOSZrxe9chtZm7KTq8n7IgmiA gDBZk0ltqQYmXy7BpLFfkWYdRj/4nBwG8B6GSz8HM7rkeyEsTxnEoJWXRSb0KGeCkL0W AheIreYIabNm9FD3n6T7JEJyFRVIRNXaThObJcl6GtaYYYLcI/cPUfofDHo3JXXqRpb9 gr2LCEUyEoqnttdmcVfHMZ0wYyC4MhPDminQFomi6deOLWuNZq1BUsLJGmB4l/1IEzPW vXFw== X-Gm-Message-State: APjAAAXH4+1OEe/2JSKmxn2p6VSZ/h9/6RyJtsbfR5pTgtVOzzTsE5oz 39xw6HD8i1+tOdg/N5ro3NPOQ+ClWe/+zyH/M6Ukb2GqZiw= X-Google-Smtp-Source: APXvYqwy7eqm8BaH7W2moocU+BneKdr99z/vSOFRQBLMaw5bCNLH/+1Xrf4SxEueYYXjIlYefGwzRexrV1nW/ssrnME= X-Received: by 2002:a05:6102:190:: with SMTP id r16mr6759133vsq.215.1581354213664; Mon, 10 Feb 2020 09:03:33 -0800 (PST) MIME-Version: 1.0 References: <20200209083316.axjj6nf7hndb7wqw@chazelas.org> In-Reply-To: <20200209083316.axjj6nf7hndb7wqw@chazelas.org> From: Sebastian Gniazdowski Date: Mon, 10 Feb 2020 18:03:37 +0100 Message-ID: Subject: Re: send-break or EOF exit the shell in "vared" To: Zsh hackers list Content-Type: multipart/alternative; boundary="0000000000002b7314059e3bb853" --0000000000002b7314059e3bb853 Content-Type: text/plain; charset="UTF-8" On Sun, 9 Feb 2020 at 09:34, Stephane Chazelas 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 Blog: http://zdharma.org --0000000000002b7314059e3bb853--