From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27210 invoked by alias); 3 Dec 2016 05:58:55 -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: 22149 Received: (qmail 12182 invoked from network); 3 Dec 2016 05:58:55 -0000 X-Qmail-Scanner-Diagnostics: from mail-qk0-f179.google.com 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(209.85.220.179):SA:0(-0.7/5.0):. Processed in 2.423943 secs); 03 Dec 2016 05:58:55 -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=FREEMAIL_FROM, RCVD_IN_DNSWL_LOW,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_PASS,T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.1 X-Envelope-From: mikachu@gmail.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: pass (ns1.primenet.com.au: SPF record at _netblocks.google.com designates 209.85.220.179 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=hzb/M1krx8vTKCIMqYSJFSGmNpABaNOSuVxHeGWItNI=; b=LP6/AOzeYbGqtEvYLdZuW2cizPxY9oM0AmYH4GaoKMeRAaukb1J6e++psgxWFK+7/C tA0cB1ZMrCaUTvaXpWqJE4W2uIPNUuj1dolib1+zu4nlyzrxx+ybMHBXYMDvwf+xfF+5 egjbYgw5vCFXvs3EKIBPFn8p5DRnl05HiclnafLIVh0ZMS5KtIKIqsTqws9fyFEq0KY9 U7FaO7g9q35HaFlH+zPAwZy1rOTct0dxwMqqeZWm1tnFKuJrgfiKoGVa061hbMOjTTep oofPM8GcDUQ3JGBn9dl+QR8vrGL8ka+PmLz0JHbazVAr1PwRcrTlxRTCG5c+3Gbq3pWM HkjQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=hzb/M1krx8vTKCIMqYSJFSGmNpABaNOSuVxHeGWItNI=; b=k2Dl5kuMjpmQMIvQzJgmpVOuqKeqM4B9oSR77ZUGKJzfNJnNGL/19yODzObyOzUdlp RKofjjimL4Ly6XWHrMT1wb+f7GHzbfMUKccrW/YY09KU+Uqw3PnVtYjAeFd3eQx8Q4Fr /I+WhaSuxU7ycOxiThJbjzZdRd0PAj6PXVjuG6iGq4wYKP9FJTLFPNJiW54Q6nzDyRQm 6llrOP1F81QXfB49MTZfhGtvVG67CVn0xZd/peOc/zIdjHC3sbzN/6OF0tMvYZzwM8J2 0h1OURDEoMkH7N/D6TvMjmVpRQE+Xi2T7uvrtzzokpi+Fd7FiVKmdjknNP5jCLsQreeh aAKQ== X-Gm-Message-State: AKaTC00Ofo0wq4kqy9uhBRtkT9+grNwYRGLJ/9LstlmJfEI7om8zwl+oVVKiC3+fIs85VQ9QsSnuGrHf/Xw/Dg== X-Received: by 10.55.207.131 with SMTP id v3mr45098563qkl.159.1480744723850; Fri, 02 Dec 2016 21:58:43 -0800 (PST) MIME-Version: 1.0 In-Reply-To: <161202195110.ZM3340@torch.brasslantern.com> 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> From: Mikael Magnusson Date: Sat, 3 Dec 2016 06:58:43 +0100 Message-ID: Subject: Re: problem with zmv To: Zsh Users Content-Type: text/plain; charset=UTF-8 On Sat, Dec 3, 2016 at 4:51 AM, Bart Schaefer wrote: > On Dec 2, 6:59pm, Ray Andrews wrote: > } > } > On Dec 2, 4:15pm, Ray Andrews wrote: > } > > } > alias zmv='() { . zmv }' > } > > } Kewl. > > It occurs to me that it might be slightly better to use > > alias zmv='function { . zmv }' > > In the unlikely event that the "zmv" alias gets expanded as the second > word on the line, you'll get an error instead of defining the first > word on the line as a function that calls zmv. I feel it's worth pointing out to any other readers that the actual correct way to do this is to just have autoload zmv in your .zshrc and you're set for life. -- Mikael Magnusson