delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-SWARE-Spam-Status: | No, hits=-2.3 required=5.0 tests=AWL,BAYES_00,SPF_PASS |
X-Spam-Check-By: | sourceware.org |
Date: | Fri, 11 Dec 2009 18:49:03 -0800 |
From: | Gary Johnson <garyjohn AT spocom DOT com> |
To: | cygwin AT cygwin DOT com |
Subject: | Re: BASH Shell - Configuration Problem? |
Message-ID: | <20091212024903.GA3452@KCJs-Computer> |
Mail-Followup-To: | cygwin AT cygwin DOT com |
References: | <26753996 DOT post AT talk DOT nabble DOT com> |
Mime-Version: | 1.0 |
In-Reply-To: | <26753996.post@talk.nabble.com> |
User-Agent: | Mutt/1.4.2.2i |
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 |
On 2009-12-11, rgc3679 wrote: > I haven't used cygwin or bash in 5 years, but I need to write a bash script > for my ISP to test JavaMail. I can't get simple things to work, so I'm > wondering if maybe I have a bash shell config issue. I did update cygwin to > the latest. [...] > Notice how the echo of the classpath is an overwrite of JAR3 path by JAR5 > path. > > Also, a similar overwrite when I try to get the java version, and run my > tester. > > Any ideas? Thanks for all the details. That really helps. It looks to me as though your script file has CR-LF (DOS) line endings rather than LF (Unix) line endings. The current version of Cygwin's bash sees only the LF line endings and includes the CR as part of the script. You can use the d2u utility to fix this. HTH, Gary -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |