From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.5 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 Received: from zero.zsh.org (zero.zsh.org [IPv6:2a02:898:31:0:48:4558:7a:7368]) by inbox.vuxu.org (Postfix) with ESMTP id CE5552BB95 for ; Thu, 14 Mar 2024 23:16:21 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20210803; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:Message-ID:Date:Content-ID: Content-Type:MIME-Version:Subject:To:References:From:In-reply-to:cc:Reply-To: Content-Transfer-Encoding:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=LxKIW3Ye22Pqj4FDb5wLXvjbIvNGUY1O95Da1v7GP0k=; b=HkGprGtVRfJTyGf2hpkzWStblO AjDm2NMBg9+fqLkxEQmQMsempt7HQifzdU7h7DomMW3Andrhjl3ZmUK8nEE8dhUn86NgLBsGebtg1 PZQCcfFEcr/4cPwA5iEWdmyKwhAa6G/r6wPcz5KYs2cI6kOoQMnZId1EvnPDhMxCReCJ1ysvVspKc zjGYturiKFtx89aU0+UpLODLA0Modi/MYsorI+C6KcKPLQ8UsWQ+LsWkhNG3ljsIV+crRVfp1SJ76 cEIAWXNQMeyz1Ia55ZnaG/Gq4+YA3o7+Ugn1xViMDAaePRCoQ8lNzW0G2TuqPoY+0UrrWB1PDYlKc ZsOOKeEA==; Received: by zero.zsh.org with local id 1rktN6-000MwU-Uu; Thu, 14 Mar 2024 22:16:20 +0000 Received: by zero.zsh.org with esmtpsa (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1rktMa-000McK-AO; Thu, 14 Mar 2024 22:15:48 +0000 Received: from [192.168.178.21] (helo=hydra) by mail.kiddle.eu with esmtp(Exim 4.97.1) (envelope-from ) id 1rktMZ-000000008B5-2kht; Thu, 14 Mar 2024 23:15:47 +0100 cc: zsh-workers@zsh.org In-reply-to: From: Oliver Kiddle References: <20240305065606.ccr2ieheahslcpye@chazelas.org> <20240306175711.t3uz2sery3b6tbjw@chazelas.org> <90726-1709936102.086878@xlWC.oGpX.V4Q4> <34739-1710017038.959920@XhYc.enDL.DTxr> <25344-1710285573.990297@5-7t._0Mp.XRXG> To: Bart Schaefer Subject: Re: [PATCH?] Nofork and removing newlines MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <31437.1710454547.1@hydra> Date: Thu, 14 Mar 2024 23:15:47 +0100 Message-ID: <31438-1710454547.652877@WxhA.vkY6.ljF0> X-Seq: 52757 Archived-At: X-Loop: zsh-workers@zsh.org Errors-To: zsh-workers-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-workers-request@zsh.org X-no-archive: yes List-Id: List-Help: , List-Subscribe: , List-Unsubscribe: , List-Post: List-Owner: List-Archive: Bart Schaefer wrote: > like ${|REPLY=...} when of course piping to "read" etc. are also valid > ways to assign to REPLY. How often would there be a command name with > no arguments in that position? Probably not all that often. > I hesitate in suggesting this, but ... is there any existing case in > which "${{" is valid? If not, I think I can change ${|var|...} to be > ${{var}...} without too much violence (except to the doc, bleah). Inner `$' in nested parameter expansions are fairly superfluous in general. ${|var|...} is closer to the REPLY default with ${|...} but other than that, I marginally prefer ${{var}...} Certainly if it does involve much violence, what we currently have is working. > > That might look like a default value assignment to someone > > Would ${{=var}...} look better? The doubled braces do give me pause. Not as good as ${={var}...} but probably better. > This is the code diff to make emulation trim all, ${ ... } trim one, > "${ ... }" trim none ... not re-doing the doc diff yet. Looks good to me. Oliver