Stephen Paul Weber wrote on Tuesday, April 21, 2009 9:39 AM: > I really like the cygwin ash.exe, but I have a problem. It tries to > replace C: with /cygdrive/c everywhere. This actually breaks my > utilities, because they expect real Windows paths. mkdir -p > "$TEMP/t" for example ends up creating > C:\cygdrive\c\DOCUME~1\NEWUSE~1\LOCALS~1\Temp\t ... which is > obviously not what I want.
man cygpath Don't forget quotes, e.g. $ mkdir -p "$(cygpath -u "${TEMP}/t")" You should also read the documentation, specifically UG: http://cygwin.com/cygwin-ug-net/using.html#using-pathnames FAQ: http://cygwin.com/faq/faq-nochunks.html#faq.using.converting-paths http://cygwin.com/faq/faq-nochunks.html#faq.using.filename-spaces In fact, I suspect looking through the UG and FAQ may head off other problems.