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 0152229E67 for ; Mon, 15 Jan 2024 01:40:54 +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:Content-Transfer-Encoding: Content-Type:Subject:Cc:To:From:Date:References:In-Reply-To:Message-Id: MIME-Version:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=31gEs4OKCetyaatIshVP7wm59s70KNcaxMwUayuhGf8=; b=UfxWWirAktN6K8MEmbxWZl3nYx F6aHHfrvN7ziewyK3DcHF1Ytt4mVI9anJIIjfv9f5fjcKupXNSrCV9yyvvK8coigA2B7WFGyls8hn X3XGbQXiEFa9xvO+g+bT6SApICLYcZF3ROBDGaS7oD3+SswMlixHO9I44kmA3A45g38thi5S7fBWi j7L3lZolzT6R7lhdSEHXMoxCUZapkxFf3BupXn+S4DtC2I3OC1ZZGRHmu9uBXSSE5GxgDFF+BQv4+ IX4m8R+UTpft3iZnqu1jTSc7gXUcwfCcTj32mRpjaHzBEWQVTiHwhR0yCQYcgQ6hlRo2rSqD1aYGO mYA94mIw==; Received: by zero.zsh.org with local id 1rPB25-0002nI-VQ; Mon, 15 Jan 2024 00:40:53 +0000 Received: by zero.zsh.org with esmtpsa (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1rPB1U-0002TD-AQ; Mon, 15 Jan 2024 00:40:16 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailauth.nyi.internal (Postfix) with ESMTP id 5093B27C0061; Sun, 14 Jan 2024 19:40:14 -0500 (EST) Received: from imap48 ([10.202.2.98]) by compute2.internal (MEProxy); Sun, 14 Jan 2024 19:40:14 -0500 X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrvdejtddgvdehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofgfggfkjghffffhvfevufgtgfesthhqredtreerjeenucfhrhhomhepnfgr fihrvghntggvucggvghljoiiqhhuvgiiuceolhgrrhhrhihvseiishhhrdhorhhgqeenuc ggtffrrghtthgvrhhnpeehgeeiudeigedvvdffvdegfeduudfgtedvtedttdefuddtjeev gfejgfevteehudenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfh hrohhmpehlrghrrhihvhdomhgvshhmthhprghuthhhphgvrhhsohhnrghlihhthidquddu hedukeejjedtgedqudduledvjeefkeehqdhlrghrrhihvheppeiishhhrdhorhhgsehfrg hsthhmrghilhdrtghomh X-ME-Proxy: Feedback-ID: iaa214773:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id E4D4B31A0065; Sun, 14 Jan 2024 19:40:13 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.9.0-alpha0-1374-gc37f3abe3d-fm-20240102.001-gc37f3abe MIME-Version: 1.0 Message-Id: In-Reply-To: References: <5cf3cd9d-d2f7-451e-b42b-f10c0d12c625@app.fastmail.com> Date: Sun, 14 Jan 2024 19:39:53 -0500 From: =?UTF-8?Q?Lawrence_Vel=C3=A1zquez?= To: "Bart Schaefer" Cc: zsh-workers@zsh.org Subject: Re: [PATCH] More stuff for Etc/FAQ Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Seq: 52481 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: On Sun, Jan 14, 2024, at 5:37 PM, Bart Schaefer wrote: > On Sun, Jan 14, 2024 at 12:47=E2=80=AFPM Lawrence Vel=C3=A1zquez wrote: >> >> > + mytt($(command)) removes trailing newlines from the output of my= tt(command) >> > + when substituting, whereas mytt(${ command }) and its variants d= o not. >> >> Hm, this diverges from the behavior of (m)ksh and (soon) bash: > > This was based on the discussion (and Sebastian's sample code) of how > mksh ${|REPLY=3D$'abc\n'} works. I thought it better to be consistent > for all of these forms. I'm inclined to agree, despite the inconsistency with $(...) and the other shells. In zsh it will be easy to use something like foo=3D${${ cmd }%$'\n'} if desired, while in the other shells preserving trailing LFs is still annoying. > Defintely worth mentioning in the FAQ tho. A quick aside in the manual might also be good. --=20 vq