Mail Archives: cygwin/2000/06/29/14:19:47
I know this is a FAQ, but I'm having trouble combining everything I've
read about this into a concise statement.
I have a bash script that references the HOME variable, which in DOS
is set to "d:/dmk". In the script, I want to pass something like
"$HOME/subdir" to a non-cygwin program.
It appears that I have to emit the following each time I want
something like this:
echo $(cygpath -w $HOME | sed -e 's,\\,/,g')
If I just use "$(cygpath -w $HOME)", it produces "d:\dmk", which bash
processes and removes the "\".
Is there an easier way to do this, or do I just have to write the
script "dospathinbash" (which would do the filter described here) for
whenever I need to do this (which is quite often)? A shell function
would probably better than a script.
--
===============================================================================
David M. Karr ; dkarr AT tcsi DOT com ; w:(425)487-8312 ; TCSI & Best Consulting
Software Engineer ; Unix/Java/C++/X ; BrainBench CJ12P (6/12/2000)
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com
- Raw text -