How does Cygwin determine PWD

Wayne Johnson wdtj@yahoo.com
Mon Sep 30 16:15:00 GMT 2013


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



More information about the Cygwin mailing list