From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27997 invoked by alias); 28 Mar 2017 01:16:27 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 22627 Received: (qmail 11682 invoked from network); 28 Mar 2017 01:16:27 -0000 X-Qmail-Scanner-Diagnostics: from mta03.eastlink.ca by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.99.2/21882. spamassassin: 3.4.1. Clear:RC:0(24.224.136.9):SA:0(-0.7/5.0):. Processed in 0.66273 secs); 28 Mar 2017 01:16:27 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW, RP_MATCHES_RCVD,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.1 X-Envelope-From: rayandrews@eastlink.ca X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: pass (ns1.primenet.com.au: SPF record at _spf.eastlink.ca designates 24.224.136.9 as permitted sender) X-Authority-Analysis: v=2.2 cv=Mo8i0ySe c=1 sm=1 tr=0 a=6rezmb/UIRDlS4lXI2FI3g==:117 a=6rezmb/UIRDlS4lXI2FI3g==:17 a=IkcTkHD0fZMA:10 a=Gpz15gC0ORFp4G1dJJcA:9 a=QEXdDO2ut3YA:10 X-EL-IP-NOAUTH: 24.207.97.252 Subject: Re: spaces in filenames should be a crime. To: zsh-users@zsh.org References: <0c1b9d89-edd0-a027-e2f1-d01c2d68fa4e@eastlink.ca> <20170326211805.GA8170@fujitsu.shahaf.local2> <7d210765-c730-da1d-bb22-19f26ce02c6e@inlv.org> <85ef8db4-4fda-8276-3058-ab319ccb68bc@eastlink.ca> From: Ray Andrews Message-id: <5a334edd-e146-a42a-11fd-0840c904554a@eastlink.ca> Date: Mon, 27 Mar 2017 17:46:16 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-version: 1.0 In-reply-to: Content-type: text/plain; charset=utf-8; format=flowed Content-transfer-encoding: 7bit On 27/03/17 04:18 PM, Mikael Magnusson wrote: > > You accidentally removed all context from your mail, but assuming > you're referring to daniel's > mostrecent() { ls -l -- **/*(.om[1]) } > then it doesn't use ls for generating a file list, only for formatting > output printed to the console, which is totally fine. > It does make me think tho, since zsh is doing all the hard work, how much more would be needed to bypass ls entirely and handle the output? This is baloney but: $ echo $(**/*(.om[1]) ... idea/question being that instead of ls receiving the list of files, maybe it could be done more directly. Not that there's any need for such a thing, I'm just curious.