This is the mail archive of the
cygwin
mailing list for the Cygwin project.
RE: Using real paths in ash
- From: "Buchbinder, Barry (NIH/NIAID) [E]" <BBuchbinder at niaid dot nih dot gov>
- To: "cygwin at cygwin dot com" <cygwin at cygwin dot com>, 'Stephen Paul Weber' <singpolyma at singpolyma dot net>
- Date: Tue, 21 Apr 2009 09:50:49 -0400
- Subject: RE: Using real paths in ash
- References: <6991f8e00904210638x6465dd79p23065c7ec39b5b39@mail.gmail.com>
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.