Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: ls c:/aax/*(.om[1]) stops working CygWin
- X-seq: zsh-users 11962
- From: zzapper <david@xxxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: ls c:/aax/*(.om[1]) stops working CygWin
- Date: Mon, 8 Oct 2007 10:19:06 +0000 (UTC)
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- Organization: SuccessTheory
- References: <Xns99C1931E92DCDzzappergmailcom@xxxxxxxxxxx> <20071006183720.GA18943@mastermind> <Xns99C36723F5EBAzzappergmailcom@xxxxxxxxxxx> <200710080920.l989KhKP027086@xxxxxxxxxxxxxx>
- Sender: news <news@xxxxxxxxxxxxx>
Peter Stephenson <pws@xxxxxxx> wrote in
news:200710080920.l989KhKP027086@xxxxxxxxxxxxxx:
> zzapper wrote:
>> Trouble is I need the c:/ style path as I need to pass it to a windows
>> App. I guess I'll have to do a variable substitute to transform the
>> /c/path/newest.file back to c:/path/newest.file
>
> I've been known to do this as a glob modifier:
>
> cyg() {
> reply=("$(cygpath -w $REPLY)")
> }
>
> % print /c/path/newest.file(+cyg)
> c:/path/newest.file
Peter
This works if I use (cygpath -m $REPLY) thanks.
But I'm having trouble combining the
(+cyg) and the *(.om[1])
into one expression
--
zzapper
http://www.rayninfo.co.uk/vimtips.html
Messages sorted by:
Reverse Date,
Date,
Thread,
Author