This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Problem with sh/bash and snapshot cygwin1-20050825.dll


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

Attachment: signature.asc
Description: OpenPGP digital signature


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]