delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2008/05/27/06:26:43

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Message-ID: <3948f0730805270326t5fd79236rbcb28495e19fcc91@mail.gmail.com>
Date: Tue, 27 May 2008 13:26:04 +0300
From: "Gadi Oron" <gadior AT gmail DOT com>
To: "Eric Blake" <ebb9 AT byu DOT net>, cygwin AT cygwin DOT com
Subject: Re: changing directory
In-Reply-To: <483AB663.7090000@byu.net>
MIME-Version: 1.0
References: <1211729448 DOT 28588 DOT ezmlm AT cygwin DOT com> <3948f0730805252250q187cb485u25f5c87a0f73c395 AT mail DOT gmail DOT com> <483AB663 DOT 7090000 AT byu DOT net>
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT 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

Hi Eric!

You are right!!!

This CDPATH is the source of the issue!

Thank you for the help - and thanks the others who assisted.

Ciao


On Mon, May 26, 2008 at 4:08 PM, Eric Blake <ebb9 AT byu DOT net> wrote:
> -----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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019