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/



Reply via email to