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:date:from:reply-to:message-id:to:subject :in-reply-to:references:mime-version:content-type :content-transfer-encoding; q=dns; s=default; b=uHf6j2Qr+LWNA9eb zqBqB5CxoEH4e30gHyE3LGnFczhlirNUew5yQh8FRiqUeeRydPTtrvT7s/CyOluM 0ME0xY1XD3/reIZitjHd1w4qq1HZguvcbazbnJ+1OZIgvXBaw4pzQ9YZvOyUzLAd USadAkpzI4OsjkilUOb6dOeguTY= 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:date:from:reply-to:message-id:to:subject :in-reply-to:references:mime-version:content-type :content-transfer-encoding; s=default; bh=5OhPSg3mqJaqKcCDjV+86y 4I/nM=; b=T1c6LLC5Hm1oRx6flwqHiPmG6M5sd+3ZSM8Sa0xfPzFsEjAjmHHcwB bgGS4rCPAbv4EZIWDIIm67U7ZxT8UD1KqNbtA+MbvoR8gmU926uRY41qn4BgQQAl VglcikWsVTUkrG1xHJ7GkliYPjs/rh98R8yx0q0qaD+DTtKKdEgHY= 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: Yes, score=6.3 required=5.0 tests=AWL,BAYES_60,FREEMAIL_FROM,HELO_LH_HOME,KAM_THEBAT,MIME_BASE64_BLANKS,RDNS_NONE autolearn=no version=3.3.2 X-HELO: smtp.ht-systems.ru Date: Mon, 30 Sep 2013 22:30:01 +0400 From: Andrey Repin Reply-To: Andrey Repin Message-ID: <1142357622.20130930223001@mtu-net.ru> To: Wayne Johnson , cygwin AT cygwin DOT com Subject: Re: How does Cygwin determine PWD In-Reply-To: <1380557664.98433.YahooMailNeo@web121505.mail.ne1.yahoo.com> References: <1380557054 DOT 49989 DOT YahooMailNeo AT web121506 DOT mail DOT ne1 DOT yahoo DOT com> <1380557664 DOT 98433 DOT YahooMailNeo AT web121505 DOT mail DOT ne1 DOT yahoo DOT com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-IsSubscribed: yes Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by delorie.com id r8UIZqGw012696 Greetings, Wayne Johnson! > 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? cygwin expect base files to be located in ../bin relative to the Cygwin1.dll location, as far as I know. I suggest you place Cygwin binaries into /support_tools/bin and supply /support_tools/etc/fstab with desirable mount options. -- WBR, Andrey Repin (anrdaemon AT yandex DOT ru) 30.09.2013, <22:27> Sorry for my terrible english...