delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-Spam-Check-By: | sourceware.org |
X-Authority-Analysis: | v=1.0 c=1 a=xe8BsctaAAAA:8 a=A_YsOPAxJPCuL2XppNcA:9 a=0vBOjrOEEFE5rEEv0UQA:7 a=uxGu1Vg6FpQUEBCCjlASc6uNd1gA:4 a=eDFNAWYWrCwA:10 a=rPt6xJ-oxjAA:10 |
Message-ID: | <483AB663.7090000@byu.net> |
Date: | Mon, 26 May 2008 07:08:51 -0600 |
From: | Eric Blake <ebb9 AT byu DOT net> |
User-Agent: | Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.14) Gecko/20080421 Thunderbird/2.0.0.14 Mnenhy/0.7.5.666 |
MIME-Version: | 1.0 |
To: | cygwin AT cygwin DOT com, gadior AT gmail DOT com |
Subject: | Re: changing directory |
References: | <1211729448 DOT 28588 DOT ezmlm AT cygwin DOT com> <3948f0730805252250q187cb485u25f5c87a0f73c395 AT mail DOT gmail DOT com> |
In-Reply-To: | <3948f0730805252250q187cb485u25f5c87a0f73c395@mail.gmail.com> |
X-IsSubscribed: | yes |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 According to Gadi Oron on 5/25/2008 11:50 PM: | | Anyway, I believe that I've pin-pointed the behaviour of bash -c (when | executed as sh). | | The fault is that executing | | /bin/sh -c "cd <dir>" | | will fail for <din> in the working folder unless it has a preceding "./" Do you, perchance, have CDPATH set? Bash has a bug where if it is in POSIX-compatible mode (which it is when started as sh rather than bash) and CDPATH is set, it refuses to look in . if CDPATH did not include `.'. ~ This is exactly opposite what POSIX requires, but the bash maintainer claims that he did that in order to obey POSIX. At any rate, I've reported it upstream (several times), and it hasn't been fixed yet. The workaround is to either not use CDPATH, or to add . as one of the paths on CDPATH. - -- Don't work too hard, make some time for fun as well! Eric Blake ebb9 AT byu DOT net volunteer cygwin bash maintainer -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (Cygwin) Comment: Public key at home.comcast.net/~ericblake/eblake.gpg Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkg6tmMACgkQ84KuGfSFAYAZcwCg0BR/T5wh1UTCREKi4qtXHy0d cJ0AniijSWn3VLKNAVpMorFhRPJVs4Pz =A2H5 -----END PGP SIGNATURE----- -- 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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |