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=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 89fc8c03 for ; Sun, 9 Feb 2020 08:02:24 +0000 (UTC) Received: (qmail 27887 invoked by alias); 9 Feb 2020 08:02:16 -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: 45403 Received: (qmail 28883 invoked by uid 1010); 9 Feb 2020 08:02:16 -0000 X-Qmail-Scanner-Diagnostics: from relay11.mail.gandi.net by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.102.1/25713. spamassassin: 3.4.2. Clear:RC:0(217.70.178.231):SA:0(-2.6/5.0):. Processed in 2.584757 secs); 09 Feb 2020 08:02:16 -0000 X-Envelope-From: stephane@chazelas.org X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: pass (ns1.primenet.com.au: SPF record at _nblcust.gandi.net designates 217.70.178.231 as permitted sender) Date: Sun, 9 Feb 2020 08:01:32 +0000 From: Stephane Chazelas To: Bart Schaefer Cc: Zsh hackers list Subject: Re: why can't we use "vared" in a subshell in interactive shells? Message-ID: <20200209080132.zh7fxwq56g5prtiq@chazelas.org> Mail-Followup-To: Bart Schaefer , Zsh hackers list References: <20200208193653.76grgvjdwkgfzbqs@chazelas.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20180716 2020-02-08 13:23:46 -0800, Bart Schaefer: > On Sat, Feb 8, 2020 at 11:37 AM Stephane Chazelas wrote: > > > > $ (vared -c var) > > vared: ZLE not enabled > > > > Why? > > Looks like an overlooked side-effect to me. The assumption being made > is that in interactive mode, if USEZLE is false then it's because the > user has explicitly unsetopt'd it, not because it was temporarily > disabled on entry to a subshell. [...] The main question here is probably "why is the zle option turned off in subshells?". AFAICT, zle could only be invoked in subshells for "vared". The change (to turn zle off in subshells) is much older (2.5 in 1994). -- Stephane