delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-Spam-Check-By: | sourceware.org |
From: | "Gary R. Van Sickle" <g DOT r DOT vansickle AT worldnet DOT att DOT net> |
To: | <cygwin AT cygwin DOT com> |
References: | <17704083 DOT post AT talk DOT nabble DOT com> <f60fe000806061858l5df463dfp3de0cae99baf5143 AT mail DOT gmail DOT com> <17704495 DOT post AT talk DOT nabble DOT com> |
Subject: | RE: path separator |
Date: | Fri, 6 Jun 2008 21:23:09 -0500 |
Message-ID: | <022B44261B2B4A689CEE37F263D307AA@DFW5RB41> |
MIME-Version: | 1.0 |
X-Mailer: | Microsoft Office Outlook 11 |
In-Reply-To: | <17704495.post@talk.nabble.com> |
X-IsSubscribed: | yes |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Unsubscribe: | <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/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 |
> From: samitj > Subject: Re: path separator > > > hmm... i thought cygwin emulates a unix shell in windows. > $ echo $PATH > /usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/cygdrive/c/WINDOW > S/system32:/cygdri..... > > anyway, if i use a windows separator (;), it doesnt work and > it considers it the end of the command as per unix shell behavior. > > dont know if u r trying to say something different, do u have > a solution to make that work ? > PATH under Cygwin uses ':' as the separator. Cygwin reads Windows' PATH env var and replaces the ';'s with ':'s for its own use and any child Cygwin processes. There's more magic happening but that's most of what you care about here. No such special treatment is given CLASSPATH, since as others have already pointed out, this is not anything that's any sort of standard. It's an environment variable that the native Windows executable java.exe uses for its own purposes. As such Cygwin leaves it untouched. If you're trying to set CLASSPATH in a (Cygwin) shell script, you'll have to quote it so the ';'s don't get misinterpreted like you've discovered. Hit the Googles for "shell quoting" and settle in for a long night of reading. -- Gary R. Van Sickle -- 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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |