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 06A2029A5D for ; Sun, 14 Jan 2024 21:48:22 +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-Type:Subject:Cc:To:From:Date: References:In-Reply-To:Message-Id:MIME-Version:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=6BbNDXrxlyr+fQqkCk2PSpTK4OUOKlCkq1FicL1iXaA=; b=Xh5ddPK1MTEy7wPVjQco4heJWd zq9dQctTKvU6TGZ2EZNJh1chbSr6PQanYZgtk2pj0F7k7g1zRn1YETV5+PCzaOUvxxJZnBpweGIb1 HkRxRDqM+Rqeu8uorhK7NlFBGERC6qKU+u92ja6WWRTmyhqPnhZM0V+qeZj39RVY9879/5Xb8z0nk pmJnnBVYgjGuGw5H4gYShmCDcrIoVgRII1gau+Y8TVOhd0yUOXcBJoPfnkUiGn9w/k7C6h50cbSjw ydj3ePCpJHLzgGk+UlYHwK0TOPe6CyU1SL7yKGiHQXQDLz0wPgF3XfvjJMuWHLBG0qDu07TO/BlWd L592fkmg==; Received: by zero.zsh.org with local id 1rP7P4-000Fqy-9t; Sun, 14 Jan 2024 20:48:22 +0000 Received: by zero.zsh.org with esmtpsa (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1rP7OT-000FWA-4c; Sun, 14 Jan 2024 20:47:47 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailauth.nyi.internal (Postfix) with ESMTP id 258F327C0061; Sun, 14 Jan 2024 15:47:44 -0500 (EST) Received: from imap48 ([10.202.2.98]) by compute2.internal (MEProxy); Sun, 14 Jan 2024 15:47:44 -0500 X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrvdeiledgudegvdcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefofgggkfgjfhffhffvvefutgesthdtredtreerjeenucfhrhhomhepnfgr fihrvghntggvucggvghljoiiqhhuvgiiuceolhgrrhhrhihvseiishhhrdhorhhgqeenuc ggtffrrghtthgvrhhnpeelkeehjefgudefgeekueegudeghfevvdeljeehieeuffehveej gfehtefhudevhfenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfh hrohhmpehlrghrrhihvhdomhgvshhmthhprghuthhhphgvrhhsohhnrghlihhthidquddu hedukeejjedtgedqudduledvjeefkeehqdhlrghrrhihvheppeiishhhrdhorhhgsehfrg hsthhmrghilhdrtghomh X-ME-Proxy: Feedback-ID: iaa214773:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id B0A6931A0065; Sun, 14 Jan 2024 15:47:43 -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: <5cf3cd9d-d2f7-451e-b42b-f10c0d12c625@app.fastmail.com> In-Reply-To: References: Date: Sun, 14 Jan 2024 15:46:11 -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 X-Seq: 52479 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 Sat, Jan 13, 2024, at 3:48 PM, Bart Schaefer wrote: > The file-slurping thread on zsh-users brought me here. > > Anything else worth mentioning? > > [...] > > + mytt($(command)) removes trailing newlines from the output of mytt(command) > + when substituting, whereas mytt(${ command }) and its variants do not. Hm, this diverges from the behavior of (m)ksh and (soon) bash: % cat ./nofork_test; echo echo "$KSH_VERSION$BASH_VERSION$ZSH_PATCHLEVEL" foo=${ echo abc; } typeset -p foo % ksh ./nofork_test; echo Version AJM 93u+ 2012-08-01 foo=abc % mksh ./nofork_test; echo @(#)MIRBSD KSH R59 2020/10/31 typeset foo=abc % Reference/bash/bash ./nofork_test; echo 5.3.0(2)-devel declare -- foo="abc" % zsh/zsh/Src/zsh ./nofork_test zsh-5.9-342-gdde1259 typeset foo=$'abc\n' If this is intentional, then it might be worth mentioning in the FAQ, to warn users who are used to the other behavior. -- vq