Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Date: Fri, 26 Aug 2005 11:07:17 +0200
From: Corinna Vinschen <corinna-cygwin@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: Problem with sh/bash and snapshot cygwin1-20050825.dll
Message-ID: <20050826090717.GB21203@calimero.vinschen.de>
Reply-To: cygwin@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
References: <430E9B0B.8040303@scytek.de> <20050826052618.GC4087@trixie.casa.cgf.cx>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <20050826052618.GC4087@trixie.casa.cgf.cx>
User-Agent: Mutt/1.4.2i

On Aug 26 01:26, Christopher Faylor wrote:
> 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.

Sigh, the "morning support team" will have a look today.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          mailto:cygwin@cygwin.com
Red Hat, Inc.

--
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/

