Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm 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 Date: Fri, 26 Aug 2005 01:26:18 -0400 From: Christopher Faylor To: cygwin AT cygwin DOT com Subject: Re: Problem with sh/bash and snapshot cygwin1-20050825.dll Message-ID: <20050826052618.GC4087@trixie.casa.cgf.cx> Reply-To: cygwin AT cygwin DOT com References: <430E9B0B DOT 8040303 AT scytek DOT de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <430E9B0B.8040303@scytek.de> User-Agent: Mutt/1.5.8i On Fri, Aug 26, 2005 at 12:31:07AM -0400, Volker Quetschke wrote: >I just stumbled over the following problem: > >$ cat shelltest.sh >#! /bin/sh >ANT_HOME="/cygdrive/c/apache-ant-1.6.5/bin/.." >ANT_HOME=`cd "$ANT_HOME" && pwd` > >With cygwin1-20050825.dll: >$ ./shelltest.sh >./shelltest.sh: line 3: cd: /cygdrive/c/apache-ant-1.6.5/bin/..: No such >file or directory > >With cygwin1-20050716.dll: >$ ./shelltest.sh >/cygdrive/c/apache-ant-1.6.5 > > >If I change the first line to: >#! /bin/bash >it surprisingly works with both snapshots. This is apparently due to Corinna's latest patch which attempts to get realpath working. bash is calling cygwin_convert_to_full_posix_path on the /cygdrive/... above and the return value now is different than it used to be. It's too late for me to investigate the problem but I'm sure that the morning support team will be able to handle it. cgf -- 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/