From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12292 invoked by alias); 27 Mar 2017 02:47:09 -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: 22624 Received: (qmail 11410 invoked from network); 27 Mar 2017 02:47:09 -0000 X-Qmail-Scanner-Diagnostics: from mta01.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.30):SA:0(-0.7/5.0):. Processed in 1.706125 secs); 27 Mar 2017 02:47:09 -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.30 as permitted sender) X-Authority-Analysis: v=2.2 cv=Mo8i0ySe c=1 sm=1 tr=0 a=3TxE0GYYoRPvB2ReGANSkw==:117 a=3TxE0GYYoRPvB2ReGANSkw==:17 a=IkcTkHD0fZMA:10 a=5OQxIsLw8m4-9xE1SgYA:9 a=QEXdDO2ut3YA:10 X-EL-IP-NOAUTH: 24.207.24.151 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> From: Ray Andrews Message-id: <85ef8db4-4fda-8276-3058-ab319ccb68bc@eastlink.ca> Date: Sun, 26 Mar 2017 19:17:00 -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: <7d210765-c730-da1d-bb22-19f26ce02c6e@inlv.org> Content-type: text/plain; charset=utf-8; format=flowed Content-transfer-encoding: 7bit On 26/03/17 06:44 PM, Martijn Dekker wrote: > > Note that 'ls' is an external command that doesn't do anything but list .. Of course. I worded that poorly. I shouldn't have said: " our 'ls' ", but something like "we can leverage 'ls' to do the whole thing". > (This is a fundamental difference with DOS/Windows batch files, where > every command is expected to resolve patterns by itself.) Yes, and how hard that was to get through my skull. > > A common alternative idiom is > to prepend './' to the glob pattern so that every argument expanded from > it also starts with './' (and hence never '-'). Cool.