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 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 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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 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 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