delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/12/31/22:13:16

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
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 <shankarunni AT netscape DOT net>
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> <Pine DOT GSO DOT 4 DOT 56 DOT 0312301515320 DOT 18706 AT slinky DOT cs DOT nyu 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
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019