This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Path Errors


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]