From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 3805 invoked from network); 23 Oct 2021 17:33:36 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 23 Oct 2021 17:33:36 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1635010416; b=bQHiV2dfxQ7/fZfTv3GRNIHxlGXX8vQCB5nVW6N7JziHMBBNDKrc6NjCtjEDHIaJomCGDgYo6U LkpB9GjoKqmQ9RNbfZTi2uxaDT+hdRfgbSGVjDjMHP83HRNAJ9iVnY0nFWiXR4xTFFJUxOMyc2 WbUFoGSmXpyDkLMxScB389EGGSfTUQTVSwl311H4G5vUXmKMtfjjG+CdNLE/AwebgjAq83OJJz UkxlXOTMSWKKIACZRKdwvz/D+wiWJEM/KroP2zjTe9SXVN7c9U/PSxdUtwoks0V1GpO21h8dSa 5oXx0ufT7AdhEETyDGEnp38aDQWofz4566FxLEaKBnqEGA==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (smtpq1.tb.ukmail.iss.as9143.net) smtp.remote-ip=212.54.57.96; dkim=pass header.d=ntlworld.com header.s=meg.feb2017 header.a=rsa-sha256; dmarc=pass header.from=ntlworld.com; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1635010416; bh=hgEKldAcZZcsojw6JSWHoFU6B4rX4GNrJdCYswrHp6o=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Transfer-Encoding:MIME-Version:Content-Type: References:In-Reply-To:Date:To:From:Subject:Message-ID:DKIM-Signature: DKIM-Signature; b=A8Yfgu815GVh+p2I8l0VEHSLyxDzgYp5/mnEIp54Vjk0MK+8Jq0uBZvN6zLMJDMn4RJ4D/h6nC TtcWUPLWqoKUTzrdkj63Z2lLSOu4+ecv63L/u3fY7OJ2UYN2qyk3HDD61ExPNAcOkE7xMYdCXf ixa9UqRQZIUgMWtsSK5EKnFWG/JKNW65N70tECs0X40I3y+UqZs6WPu/O+7zZ1yrNO+BL99PPo 9c3IU9nZXDx7aFTa6s2JjkMVNmaxYIEzMQ5poehYKhUCEvIzYfUpKFnbQkrJNvZO1D8+0haCkt ZcrMNezAfn2JSO5rNNujHxZuDiT16QDsT/H2+j28ZJTZdg==; 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: Mime-Version:Content-Type:References:In-Reply-To:Date:To:From:Subject: Message-ID:Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From :Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=/Vvx9Xe7GdsC3h9mJMmKRr2gvJFfK4j9noztezej8r0=; b=gVBARlmrVvnXGahC8E406iET7D liQQoRnz4z9MV6Yoq57vmo4dil70JWHsJdS3BhTkUU8AHLshQwYelumVtBmGpU4Mz319/idUkWflE iMUm2oZipFWD+ZUTienfTVrMYe3DGbSseF8NP0A+1Vcnt5zNau+F49eg+2GUrNdDVEPmaO1rXKCja ROU1mZdFFzBsVJVzXWDuog/aT/LYHDAKQW7Y0dkKc/EKF1nTId9GdKcwJPrKPnO7KANfNFHiCLmyC y9JGKmUjXlouSpGw/owlPoR/fEwNS9jgqmpNF63zdx38jqbeoSAO1iIGRDrOHsQF60spagfPPUzQl nwxkv8Pg==; Received: from authenticated user by zero.zsh.org with local id 1meKtj-0003vM-Ex; Sat, 23 Oct 2021 17:33:35 +0000 Authentication-Results: zsh.org; iprev=pass (smtpq1.tb.ukmail.iss.as9143.net) smtp.remote-ip=212.54.57.96; dkim=pass header.d=ntlworld.com header.s=meg.feb2017 header.a=rsa-sha256; dmarc=pass header.from=ntlworld.com; arc=none Received: from smtpq1.tb.ukmail.iss.as9143.net ([212.54.57.96]:53266) by zero.zsh.org with esmtps (TLS1.2:ECDHE-RSA-AES256-GCM-SHA384:256) id 1meKsz-0003BT-93; Sat, 23 Oct 2021 17:32:49 +0000 Received: from [212.54.57.107] (helo=csmtp3.tb.ukmail.iss.as9143.net) by smtpq1.tb.ukmail.iss.as9143.net with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1meKsz-0003aj-4D for zsh-users@zsh.org; Sat, 23 Oct 2021 19:32:49 +0200 Received: from pws-Zeus ([82.1.229.179]) by cmsmtp with ESMTPA id eKsymFfvC9Za5eKsymG8DG; Sat, 23 Oct 2021 19:32:49 +0200 X-Originating-IP: [82.1.229.179] X-Authenticated-Sender: p.w.stephenson@ntlworld.com X-Spam: 0 X-Authority: v=2.4 cv=NtrCzuRJ c=1 sm=1 tr=0 ts=61744741 cx=a_exe a=W4rGJ7PGCSRRUvufKHO8Dg==:117 a=W4rGJ7PGCSRRUvufKHO8Dg==:17 a=IkcTkHD0fZMA:10 a=8gfv0ekSlNoA:10 a=NJZCFuJvEG_xSh8X_8EA:9 a=QEXdDO2ut3YA:10 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ntlworld.com; s=meg.feb2017; t=1635010369; bh=/Vvx9Xe7GdsC3h9mJMmKRr2gvJFfK4j9noztezej8r0=; h=Subject:From:To:Date:In-Reply-To:References; b=l8fHTwVglKJzWZZu0bAcJ44ESbXEUFJIPvUWbMt1b3DhOWZjX2aiKfUSmXvtOVC03 KTy9Opq9DKsLpCqoGPVI2NIP6jIWCui74TMKlJuQ5+5kEwjj7bOFNneza+isOQS+2Z xJtRzgKnl3XVDyTNaAQVEkoQJIXrRZllhBSJbvYs0BsWAU5neiGvINVfwBw1f7qbGa eExeQhgyeO9kqX+aPmff/nOtNZg2kwsA0pDNpLrCGHc5Cw+gX/wNMMZNhArol5qciy ArBSM3TcxU1o0og6mL5/qggIvob6Bjbt/IcwIbBt7WJp10ZPWkON5W0OKfv0bm3T15 x/FZXduJAiMiQ== Message-ID: <0b757d10f1a2374d5a84199fbed71314e16fea63.camel@ntlworld.com> Subject: Re: Most Recent File From: Peter Stephenson To: zsh-users@zsh.org Date: Sat, 23 Oct 2021 18:32:48 +0100 In-Reply-To: <20211023172445.GA8911@gmx.de> References: <20211023164338.GA6763@gmx.de> <095002061dc32afdfb1dcfe51e1171e23e62375d.camel@ntlworld.com> <20211023172445.GA8911@gmx.de> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.28.5-0ubuntu0.18.04.2 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-CMAE-Envelope: MS4xfMw0ZSMbPN6+EhISqChFHCAhP84qrO+n6uuw4XWS/es1vlg9NosB376nuWuDOpXCjOiDNpb/FcSqq6jAvVfVLNdhqdPFmcw6LjiS30QdPLtA8eCqotZn wR6Mu8f1RiD3ut6FTCoiUUvrLtU54grFuNhYb2CXOh/IWBNCLf43bAKG3w/B3l4ycys1LWMIRJYGYg== X-Seq: 27271 Archived-At: X-Loop: zsh-users@zsh.org Errors-To: zsh-users-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-users-request@zsh.org X-no-archive: yes List-Id: List-Help: List-Subscribe: List-Unsubscribe: List-Post: List-Owner: List-Archive: On Sat, 2021-10-23 at 18:24 +0100, Dominik Vogt wrote: > On Sat, Oct 23, 2021 at 05:58:28PM +0100, Peter Stephenson wrote: > > f=(*(-om[1,1])) > > print -l -- ${(q)f} > > Hmmmm > > # filename with newline: > $ touch "c > d" > $ f=(c*d) > $ echo "${(q)f}" > c$' > 'd > > Why does the value contain a '$'? The $'...' form of quoting is a special one which can be used to quote things that can't be quoted by backslashes. In this case, that's a newline. Actually, a normal '' would work here, but $'...' quoting is used for consistency with cases where that wouldn't work. If you try it, you'll see it does indeed do the right thing. pws