From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12954 invoked by alias); 3 Dec 2016 23:45:35 -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: 22154 Received: (qmail 18409 invoked from network); 3 Dec 2016 23:45:35 -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(-3.6/5.0):. Processed in 1.22242 secs); 03 Dec 2016 23:45:35 -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=-3.6 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.30 as permitted sender) X-Authority-Analysis: v=2.2 cv=ZvqvEJzG c=1 sm=1 tr=0 a=MRfsBU9oQI9kG0qxcmz51g==:117 a=MRfsBU9oQI9kG0qxcmz51g==:17 a=N659UExz7-8A:10 a=EqhmGh3lZmfRtyrBLqYA:9 a=pILNOxqGKmIA:10 X-EL-IP-NOAUTH: 24.207.105.139 Message-id: <58435915.5060902@eastlink.ca> Date: Sat, 03 Dec 2016 15:45:25 -0800 From: Ray Andrews User-Agent: Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20100101 Icedove/31.7.0 MIME-version: 1.0 To: zsh-users@zsh.org Subject: Re: problem with zmv References: <5840492A.2090304@eastlink.ca> <5841DF8C.8000602@eastlink.ca> <58420592.4040406@eastlink.ca> <161202154727.ZM5584@torch.brasslantern.com> <58420E9B.6090501@eastlink.ca> <161202164926.ZM2970@torch.brasslantern.com> <5842350A.6090400@eastlink.ca> <161202195110.ZM3340@torch.brasslantern.com> <5842E867.2020700@eastlink.ca> <161203090506.ZM5554@torch.brasslantern.com> In-reply-to: <161203090506.ZM5554@torch.brasslantern.com> Content-type: text/plain; charset=windows-1252; format=flowed Content-transfer-encoding: 7bit On 12/03/2016 09:05 AM, Bart Schaefer wrote: > On Dec 3, 7:44am, Ray Andrews wrote: > } > } On 12/02/2016 07:51 PM, Bart Schaefer wrote: > } > It occurs to me that it might be slightly better to use > } > > } > alias zmv='function { . zmv }' > } > > } Gotcha ... ok, thanks Bart, I'll not try to understand why, that's taken > } on faith. > > I was having trouble coming up with an example last night, but: > > You may have noticed that "noglob" acts a bit like "command" in that > aliases are not expanded: I had no idea. If ever I run into that, I'm warned in advance. > > % alias noglob='noglob ' > I will never understand the thinking that produced things like that. > If you want noglob with zmv you have to autoload the real function, as > there's no way to use precommand modifiers with an anonymous function. > Ok, autoload it is. Astonishing that you can remember all these little twists and turns Bart. Simplicity is not a zsh virtue.