At 03:10 PM 3/13/2004, you wrote: >hi, >I thought I'd write a simple script to allow me to cd to a DOS path >that I had in my paste buffer, turned out to be tricky > >alias doscd='. doscd' >#!bash ># doscd ># description : convert dos paths >result=$(echo $1 | sed "s/\\\/\//g") >\cd $result > > >> doscd "c:\temp\fred" > >That more or less works but I have to quote the "Dos path" and it >freaks out if a directory begins with a > >eg >> doscd "c:\aaa\" >Cannot find c:/aa/ > >Cygpath hardly helps because I'd need to backslash (no gain) > >cygpath --unix C:\\cygwin\\bin\\cygwin.bat > >Any ideas?1? > >zzapper (vim & cygwin & zsh) >-- > >vim -c ":%s/^/WhfgTNabgureRIvzSUnpxre/|:%s/[R-T]/ /Ig|:normal ggVGg?"
How about: cygpath --unix "C:\cygwin\bin\cygwin.bat" ? -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 838 Washington Street (508) 893-9889 - FAX Holliston, MA 01746 -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/