X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org From: "Gary R. Van Sickle" To: References: <17704083 DOT post AT talk DOT nabble 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 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit 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 Precedence: bulk List-Id: List-Unsubscribe: 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 > 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/