This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Re: Path Errors
- From: Shankar Unni <shankarunni at netscape dot net>
- To: cygwin at cygwin dot com
- Date: Wed, 31 Dec 2003 19:12:54 -0800
- Subject: Re: Path Errors
- References: <3095.68.55.203.3.1072814788.squirrel@webmail.umbc.edu> <Pine.GSO.4.56.0312301515320.18706@slinky.cs.nyu.edu> <3125.68.55.203.3.1072824370.squirrel@webmail.umbc.edu>
Anjali Bharat Shah wrote:
for i in ${REI_HOME}/lib/*.jar ; do
if [ "$CP" != "" ]; then
#CP=${CP}:$i
CP="cygpath -w -p $i:${CP}"
Ooh, that's a bad idea, because you're now mixing windows and posix
paths (remember, CP is in Windows form, while $i is in posix form).
Better to accumulate the entire path in the normal way (CP="$i:$CP") in
the loop, and then at the end, do a single CP=`cygpath -w -p "$CP"`.
else
CP="cygpath -w -p $i"
fi
done
--
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/