Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: suffix aliases behaving weird?
- X-seq: zsh-workers 23600
- From: Peter Stephenson <pws@xxxxxxx>
- To: zsh workers <zsh-workers@xxxxxxxxxx>
- Subject: Re: suffix aliases behaving weird?
- Date: Mon, 25 Jun 2007 18:23:44 +0100
- In-reply-to: <20070625162656.GA2730@xxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <20070625162656.GA2730@xxxxxxxxxxxxxxx>
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 <pws@xxxxxxx> 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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author