Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: ls c:/aax/*(.om[1]) stops working CygWin



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