From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18645 invoked from network); 25 Jun 2007 17:23:59 -0000 X-Spam-Checker-Version: SpamAssassin 3.2.1 (2007-05-02) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.2.1 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 25 Jun 2007 17:23:59 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 77320 invoked from network); 25 Jun 2007 17:23:53 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 25 Jun 2007 17:23:53 -0000 Received: (qmail 12262 invoked by alias); 25 Jun 2007 17:23:50 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 23600 Received: (qmail 12250 invoked from network); 25 Jun 2007 17:23:50 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 25 Jun 2007 17:23:50 -0000 Received: (qmail 76929 invoked from network); 25 Jun 2007 17:23:50 -0000 Received: from cluster-d.mailcontrol.com (217.69.20.190) by a.mx.sunsite.dk with SMTP; 25 Jun 2007 17:23:47 -0000 Received: from cameurexb01.EUROPE.ROOT.PRI ([62.189.241.200]) by rly50d.srv.mailcontrol.com (MailControl) with ESMTP id l5PHNjT8018754 for ; Mon, 25 Jun 2007 18:23:46 +0100 Received: from news01.csr.com ([10.103.143.38]) by cameurexb01.EUROPE.ROOT.PRI with Microsoft SMTPSVC(6.0.3790.1830); Mon, 25 Jun 2007 18:23:45 +0100 Received: from news01.csr.com (localhost.localdomain [127.0.0.1]) by news01.csr.com (8.13.8/8.13.4) with ESMTP id l5PHNj1X009918 for ; Mon, 25 Jun 2007 18:23:45 +0100 Received: from csr.com (pws@localhost) by news01.csr.com (8.13.8/8.13.8/Submit) with ESMTP id l5PHNi5R009915 for ; Mon, 25 Jun 2007 18:23:45 +0100 Message-Id: <200706251723.l5PHNi5R009915@news01.csr.com> X-Authentication-Warning: news01.csr.com: pws owned process doing -bs To: zsh workers Subject: Re: suffix aliases behaving weird? In-reply-to: <20070625162656.GA2730@fsst.voodoo.lan> References: <20070625162656.GA2730@fsst.voodoo.lan> Comments: In-reply-to Frank Terbeck message dated "Mon, 25 Jun 2007 18:26:56 +0200." Date: Mon, 25 Jun 2007 18:23:44 +0100 From: Peter Stephenson X-OriginalArrivalTime: 25 Jun 2007 17:23:45.0353 (UTC) FILETIME=[9598C390:01C7B74D] Content-Type: text/plain MIME-Version: 1.0 X-Scanned-By: MailControl A-07-07-10 (www.mailcontrol.com) on 10.68.0.160 Frank Terbeck wrote: > % "/mnt/audio/music/S/Slayer - South Of Heaven - 01 - South Of Heaven.ogg" > zsh: permission denied: /mnt/audio/music/S/Slayer - South Of Heaven - 01 - > South Of Heaven.ogg > [snap] > > Bug or intended behaviour? That's how aliases work: they're handled very early, before processing of quotes, so it looks like the suffix is `ogg"'. If you use backslashes you won't have that problem. Completion used to convert automatically to backslashed form but it doesn't any more (I think I've bitten off my than I can chew here, actually, but I can't put my finger on exactly how it happened anyway). With 4.3 the following ZLE widget will do it: backslashify() { modify-current-argument '${(q)${(Q)ARG}}' } autoload -U modify-current-argument zle -N backslashify -- Peter Stephenson Software Engineer CSR PLC, Churchill House, Cambridge Business Park, Cowley Road Cambridge, CB4 0WZ, UK Tel: +44 (0)1223 692070 To access the latest news from CSR copy this link into a web browser: http://www.csr.com/email_sig.php To get further information regarding CSR, please visit our Investor Relations page at http://ir.csr.com/csr/about/overview