X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:references:message-id:date:from:reply-to :subject:to:in-reply-to:mime-version:content-type :content-transfer-encoding; q=dns; s=default; b=FJybB9XY1GxBuJ8q 8wwlKNgTCm4nbopNFcjpzu8bRR0/+0HaZpa45SWqmZJFmfksum7amZqawVHaVfBJ ti06L+qabVkk1EPWRnNAQ6/NcqEifHUDOiu3rnoKRf6eBdDqhjgfJql13Xzy0na6 p+xlymHJSF30EJDo7yQaIwH4SRg= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:references:message-id:date:from:reply-to :subject:to:in-reply-to:mime-version:content-type :content-transfer-encoding; s=default; bh=OoiWuJUZh3s3yvV31bqk44 peQps=; b=CQqzeAI9wn6VM2jqCeNsMtV8wQSxart/hO89ASbzzvC0ZG3e8OoJca iB2pOK7mCJXqqoZy6w90NsbSFCoTNkQL0UEILNVJRl4Z9DJCWpVpiBh18erMI6aR wNHwHWp9uCUogD0HiWFRrPZ+ma+1ovQRJzfwtvDPRYzF4uWyEcDf4= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: 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 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=4.4 required=5.0 tests=AWL,BAYES_50,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,RCVD_IN_JMF_BL,RDNS_NONE autolearn=no version=3.3.2 X-HELO: nm25-vm1.bullet.mail.bf1.yahoo.com References: <1380557054 DOT 49989 DOT YahooMailNeo AT web121506 DOT mail DOT ne1 DOT yahoo DOT com> Message-ID: <1380557664.98433.YahooMailNeo@web121505.mail.ne1.yahoo.com> Date: Mon, 30 Sep 2013 09:14:24 -0700 (PDT) From: Wayne Johnson Reply-To: Wayne Johnson Subject: Re: How does Cygwin determine PWD To: "cygwin AT cygwin DOT com" In-Reply-To: <1380557054.49989.YahooMailNeo@web121506.mail.ne1.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 X-IsSubscribed: yes Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id r8UGEkhi001658 I am upgrading some of our scripts to use the latest version of Cygwin bash et. al. and run into an interesting problem that I'm having trouble explaining. I have put bash, pwd, etc. into a directory called support_tools, and have a batch file that does a cd to the support_tools directory and then runs bash in order to capture some information.  In the old version of bash (3.2.49(22)) when we run bash, pwd returns the proper cygwinified path, like C:\Program Files (x86)\install_dir\support_tools. Under the new bash (4.1.10(4)), when I do pwd I get /support_tools. How does bash (or in this case probably one of the cygwin libraries) determine the current directory when you start it up? --- There are two kinds of people: Those who say to God, "Thy will be done," and those to whom God says, "All right, then,  have it your way." --C.S. Lewis  -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple