delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
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 |
Message-ID: | <430F252F.6090802@scytek.de> |
Date: | Fri, 26 Aug 2005 10:20:31 -0400 |
From: | Volker Quetschke <quetschke AT scytek DOT de> |
User-Agent: | Mozilla Thunderbird 1.0.2 (Windows/20050317) |
MIME-Version: | 1.0 |
To: | cygwin AT cygwin DOT com |
Subject: | Re: Problem with sh/bash and snapshot cygwin1-20050825.dll |
References: | <430E9B0B DOT 8040303 AT scytek DOT de> |
In-Reply-To: | <430E9B0B.8040303@scytek.de> |
X-IsSubscribed: | yes |
--------------enigE15929C2CB62FAC98604DA19 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Volker Quetschke wrote: > I just stumbeled 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. The surprising thing is that bash.exe = sh.exe (bash version 3.0-11). > > Volker > -- PGP/GPG key (ID: 0x9F8A785D) available from wwwkeys.de.pgp.net key-fingerprint 550D F17E B082 A3E9 F913 9E53 3D35 C9BA 9F8A 785D --------------enigE15929C2CB62FAC98604DA19 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (MinGW) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFDDyUvPTXJup+KeF0RAkvTAJ90/2qxx9vSmeV3Zb+8b8TmRj8QCQCg1flJ CcC9ytTdpUYrTcJY+yVA5ss= =XRvT -----END PGP SIGNATURE----- --------------enigE15929C2CB62FAC98604DA19--
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |