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

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



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