Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com To: cygwin AT cygwin DOT com From: Shankar Unni Subject: Re: Path Errors Date: Wed, 31 Dec 2003 19:12:54 -0800 Lines: 22 Message-ID: <3FF39036.70704@netscape.net> References: <3095 DOT 68 DOT 55 DOT 203 DOT 3 DOT 1072814788 DOT squirrel AT webmail DOT umbc DOT edu> <3125 DOT 68 DOT 55 DOT 203 DOT 3 DOT 1072824370 DOT squirrel AT webmail DOT umbc DOT edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet AT sea DOT gmane DOT org User-Agent: Mozilla Thunderbird 0.5a (20031223) In-Reply-To: <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/