Path Errors

Shankar Unni shankarunni@netscape.net
Thu Jan 1 03:13:00 GMT 2004


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/


More information about the Cygwin mailing list

AltStyle によって変換されたページ (->オリジナル) /