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:

> #! /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?  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"`

Brian

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


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