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

Volker Quetschke quetschke@scytek.de
Fri Aug 26 14:20:00 GMT 2005


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 252 bytes
Desc: OpenPGP digital signature
URL: <http://cygwin.com/pipermail/cygwin/attachments/20050826/de559782/attachment.sig>


More information about the Cygwin mailing list