On 2008-01-11, Jay wrote: > Thanks everyone for the help. Since i'm getting the path from the registry i > can't add in the extra backslashes without using sed. I ended up with this > registy key which seems to work for local drives as well as network drives > (UNCs) (haven't tested files with special characters).
Something I used to work around this problem was to have Windows invoke a bat file and have that bat file invoke bash. The key, though, suggested in this list some time ago, is to add "noglob" to the CYGWIN environment variable in the bat file, so that the bat file can pass the file name, directory name, or network path given to it by Windows to the bash command unchanged. E.g., set cygwin_save=%CYGWIN% set CYGWIN=%CYGWIN% noglob C:\cygwin\bin\rxvt.exe -e C:/cygwin/bin/bash --login -c "run_bash_here "'%1'" "'%cygwin_save%' where run_bash_here is a function defined in ~/.bashrc that contains, among other things, # Restore original value of CYGPATH. # CYGWIN="$2" Regards, Gary -- 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/