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 11961
 
- From: Peter Stephenson <pws@xxxxxxx>
 
- To: zsh-users@xxxxxxxxxx
 
- Subject: Re: ls c:/aax/*(.om[1]) stops working CygWin
 
- Date: Mon, 08 Oct 2007 10:20:43 +0100
 
- In-reply-to: <Xns99C36723F5EBAzzappergmailcom@xxxxxxxxxxx>
 
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
 
- References: <Xns99C1931E92DCDzzappergmailcom@xxxxxxxxxxx> <20071006183720.GA18943@mastermind> <Xns99C36723F5EBAzzappergmailcom@xxxxxxxxxxx>
 
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 Stephenson <pws@xxxxxxx>                  Software Engineer
CSR PLC, Churchill House, Cambridge Business Park, Cowley Road
Cambridge, CB4 0WZ, UK                          Tel: +44 (0)1223 692070
Messages sorted by:
Reverse Date,
Date,
Thread,
Author