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.3 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, HTML_MESSAGE,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 28195 invoked from network); 23 Oct 2021 16:17:25 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 23 Oct 2021 16:17:25 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1635005845; b=I2/GjOCoRLzby0DdksQYMpEWeS6jbov4SSFnLDAi8zBj8jjSnHqeUbEAruxruqVv83YS/51+3s GQlU0FxWXvGjGUpGd1utQm+P7cnT7lcZMPYRTH4AvvdSVfzWoRoNU2KFGKPgk6Gb7cn3B+ruYo Uko+m11dEuOM/l1PVpw9MhOueWcFtUWwolzGIA68jl7p1X0c228FQ7hwyg7Rn3lP8AmrT5KHtC CEqmKCxcefupGdC6HlBkhbSLeRhg2FYCcb7bLnhYJDO6PvRcvfdShuZw2CjxLRDcWJHQBccHjS BKDfrXDsfdlKt9D8hilYIZgQ6MZYvVP3NdsDxVnEvyATMg==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-ed1-f51.google.com) smtp.remote-ip=209.85.208.51; dmarc=none header.from=alumni.princeton.edu; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1635005845; bh=rfYGrAGvkR/mP9WBUPjOjf+841A8DANdxVwejWGB7sw=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Type:To:Subject:Message-ID:Date:From:MIME-Version: DKIM-Signature; b=HD5UVYQg8vSqRbzXcElnVphPbGfgNUngv67ReCfabcGdaITvLGZY2hwxqVl6fFo50CTK84dpJU DhGldq6qYA5/QKbQkRhXcc4ugC4ekLhlkEQ3/xs4bA0yCVxaUm8Jx6AGwmoaihC5T9ImwNhwOh GhVuMTOxVBjh2wJ6GUbA0QwZYgRrf3bUoNr3BbDFKBWTkcg6v+XCjRtEx0BFzLimcDNIeAITdL iY3xjuyS4zfPRWbw5zbMUjzl0T1g2WWZmHQugjMWqM7KQqGYhS7rt7LxmHtx1JfnhCIYui4Rtp 2+naLSduGFjtDkva5EDv4wc8tUE568dWWfK34Z/gEFSlyw==; 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:To:Subject:Message-ID: Date:From:MIME-Version:Reply-To:Cc:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References; bh=9J47U79WXBGqx/+gldF+fQSFUN+yUnimJ4KxDDii+8w=; b=npiBEyuOj/QPu2lFqopxRdWqr2 JxX3oPNpkj6fiJuQnJA2uPCqfjaKsaJKXGpjhhIFUAb2+QeUgRkEEz09h+ozCiHHgC2Y8kM5rbUQb SBf7Ayg33PGTbK/BatJr9FMpNEg0M152R8qlROQC4IcGs+snCEOE1hxVemcqVf7Jh36YxEyU5qMeH PeeukSq1kOoy/qjFUwp7F7pgsjSE65iAp+P8a1KSa2DilEMDBZyp5DMN0oNVGdUt1+UFURrDrWEIJ QPNTnBq1aEHjQNvLDecAEWoFrkhDYgHxywg/JFBPcwjJPRs664pd/W6XVhQI3C+mvn20dN+aa+A4x d8Ro1rkw==; Received: from authenticated user by zero.zsh.org with local id 1meJi0-000Ius-0a; Sat, 23 Oct 2021 16:17:24 +0000 Authentication-Results: zsh.org; iprev=pass (mail-ed1-f51.google.com) smtp.remote-ip=209.85.208.51; dmarc=none header.from=alumni.princeton.edu; arc=none Received: from mail-ed1-f51.google.com ([209.85.208.51]:35510) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1meJgp-000ICY-S7; Sat, 23 Oct 2021 16:16:12 +0000 Received: by mail-ed1-f51.google.com with SMTP id w19so7726403edd.2 for ; Sat, 23 Oct 2021 09:16:11 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=9J47U79WXBGqx/+gldF+fQSFUN+yUnimJ4KxDDii+8w=; b=7Eel0FO7V3P6K4gkXTUXFlQgdYthbCOt5ixUFT1Hz/TXEc8IMA+k2sTLQhGvpJrBF8 lRfpp5L0K7ygf1wkCPiuq1EviXL6rqHS/uk3Eh8bJdK1Y8oFXFpMKeRqkjaaTnTRYKMf VddqpRwjhk+hSCWI48PvQSFYdQ5Ml+bBjSMocCEUYW6PwPoa9hKHUMouQmeTQDSBjcxT fqDlRNTXtrdLAgAacNEGbp6Vr13QCYntw3nUTKGUI6CP/K0i36mKsw0B7lhWtThdNFhk 0e77M3ldxpPMYhdJP48XF6vqDFl9GAOTWEdS6iupwbmlUCUK2hZP+T59XdTTvauXWiKS KBJw== X-Gm-Message-State: AOAM530vIr4U1m90eBoUnkak5fQS9nbVwjA7b2fPwCOapbUbrMxUjQDj 5kJbNx+PbyczsqRUpOGdE9J/SN3bb5ru63pncoKRst+/+Ws= X-Google-Smtp-Source: ABdhPJwTuhn3/YLyddoqcjpC7NqZiH2fjhEBEnZMayIDmMZooFhVdLa+K+xGWiVEp1HldILhjwDZ4RKBul4Rx2Ym71k= X-Received: by 2002:a17:906:ce38:: with SMTP id sd24mr8549266ejb.316.1635005771009; Sat, 23 Oct 2021 09:16:11 -0700 (PDT) MIME-Version: 1.0 From: Vin Shelton Date: Sat, 23 Oct 2021 12:15:35 -0400 Message-ID: Subject: Most Recent File To: Zsh-Users List Content-Type: multipart/alternative; boundary="0000000000002fd6ad05cf0772b9" X-Seq: 27264 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: --0000000000002fd6ad05cf0772b9 Content-Type: text/plain; charset="UTF-8" I want to list the most recent file in the current directory. print -l -- *(-om[1,1]) works for ordinary filenames, but does not quote the output appropriately if the filename contains spaces. How do I quote the expression to accommodate filenames which contain spaces? TIA, Vin -- *Never for money, always for love* --0000000000002fd6ad05cf0772b9 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I want to list the most recent=C2=A0file in = the current directory.
=C2= =A0 =C2=A0 print -l -- *(-om[1,1])
works for ordinary filenames, but does = not quote the output appropriately if the filename contains spaces.=C2=A0 H= ow do I quote the expression to accommodate=C2=A0filenames which contain sp= aces?

TIA,
= =C2=A0 Vin
--
= Never for money, always for love
--0000000000002fd6ad05cf0772b9--