Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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: <430EA16A.D8064A97@dessent.net> Date: Thu, 25 Aug 2005 21:58:18 -0700 From: Brian Dessent 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> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Reply-To: cygwin AT cygwin DOT com 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 . 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/