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

Volker Quetschke quetschke@scytek.de
Fri Aug 26 05:02:00 GMT 2005


Brian Dessent wrote:
> Volker Quetschke wrote:
> 
>>#! /bin/sh
>>ANT_HOME="/cygdrive/c/apache-ant-1.6.5/bin/.."
>>ANT_HOME=`cd "$ANT_HOME" && pwd`
>>[...]
>>If I change the first line to:
>>#! /bin/bash
>>it surprisingly works with both snapshots.
> 
> 
> Does the 'bin' subdirectory exist?
Yes.

$ ll /cygdrive/c/apache-ant-1.6.5/ | grep bin
drwxrwxrwx+ 2 Administratoren none      0 Jul  4 01:07 bin/

> If not then you're probably running
> into an aspect of <http://cygwin.com/ml/cygwin/2005-08/msg01097.html>.
> 
> Perhaps a better way to do this would be:
> 
> ANT_HOME=`readlink -m "$ANT_HOME"`

Indeed, but that's not my call. I found this problem when trying
to build OpenPffice.org with the newest cygwin snapshot. The
failing snippet is from apache-ant-1.6.5/bin/ant and triggered
by a configure check that tests if ant exists.

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: 254 bytes
Desc: OpenPGP digital signature
URL: <http://cygwin.com/pipermail/cygwin/attachments/20050826/8912e953/attachment.sig>


More information about the Cygwin mailing list