From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2948 invoked by alias); 28 Mar 2017 14:29:31 -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: 22629 Received: (qmail 4475 invoked from network); 28 Mar 2017 14:29:31 -0000 X-Qmail-Scanner-Diagnostics: from mta04.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.10):SA:0(-0.7/5.0):. Processed in 0.671847 secs); 28 Mar 2017 14:29:31 -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, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,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.10 as permitted sender) X-Authority-Analysis: v=2.2 cv=O5RJhF1W c=1 sm=1 tr=0 a=6rezmb/UIRDlS4lXI2FI3g==:117 a=6rezmb/UIRDlS4lXI2FI3g==:17 a=IkcTkHD0fZMA:10 a=YupUoqwMht47ZcGbkcsA: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> <5a334edd-e146-a42a-11fd-0840c904554a@eastlink.ca> <60a213ad-6cb3-bef4-9e61-f2c1611a5e71@gmx.de> From: Ray Andrews Message-id: Date: Tue, 28 Mar 2017 07:29:24 -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: <60a213ad-6cb3-bef4-9e61-f2c1611a5e71@gmx.de> Content-type: text/plain; charset=utf-8; format=flowed Content-transfer-encoding: 7bit On 28/03/17 02:08 AM, Martin Richter wrote: echo $(**/*(.om[1]) > I think you are after > > $ print -- **/*(.Nom[1]) > Ha! You know I was actually speculating, that wasn't supposed to work even remotely, yet I see it was not far from reality -- zsh can and does make a list of the files, it does not only do it when 'helping' ls or some other binary. So ls is merely supplying extra information about the files as may be desired, it does not 'make' the list of files. That's residual DOSthink again -- ok the shell globs the filenames, but only 'with' ls, that is, ls 'asks' zsh to expand a list of files. NO! zsh creates the list all by itself ls or no ls. ls is a passive recipient, there is no 'request'. Yes?