X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 	tests=AWL,BAYES_00,SPF_FAIL
X-Spam-Check-By: sourceware.org
Message-ID: <4B913AF2.3070102@redhat.com>
Date: Fri, 05 Mar 2010 10:10:10 -0700
From: Eric Blake <eblake@redhat.com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.23) Gecko/20090812 Thunderbird/2.0.0.23 Mnenhy/0.7.6.666
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Re: [ANNOUNCEMENT] [1.7] Updated: dash-0.5.5.1-2; Obsolete: ash
References: <announce.4A5C7A2B.4020700@byu.net>  <4B5860C9.50100@sidefx.com>  <4B591221.10501@byu.net>  <4B91105B.7050205@sidefx.com> <20100305152637.GK7980@calimero.vinschen.de> <4B913788.40301@sidefx.com>
In-Reply-To: <4B913788.40301@sidefx.com>
Content-Type: multipart/signed; micalg=pgp-sha1;  protocol="application/pgp-signature";  boundary="------------enigBC420472F921E2A248D81155"
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

--------------enigBC420472F921E2A248D81155
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

According to Edward Lam on 3/5/2010 9:55 AM:
> Corinna Vinschen wrote:
>> Is that a case-sensitivity issue, perhaps?  See
>> http://cygwin.com/cygwin-ug-net/using-specialnames.html#pathnames-casese=
nsitive
>>
>=20
> I don't see how it is:
>=20
> $ dash
> $ cd /c
> $ ls -d W*
> WINDOWS
> $ cd c:/WINDOWS
> cd: 3: can't cd to c:/WINDOWS

Let's rule out bash vs. dash complexities, and first focus on whether
cygwin1.dll might be at fault.  Untested code:

#include <unistd.h>
#include <stdio.h>
#include <string.h>
#include <errno.h>
int main(int argc, char**argv)
{
  int e =3D chdir(argv[1]);
  char *cwd =3D getcwd(NULL,0);
  return printf ("chdir to %s: %d(%s), now in %s\n", argv[1],
    e, strerror(e), cwd);
}

That alone will give insights into whether you should even be expecting
this to work.  The difference between bash and dash is that bash spends
more time calling cygwin conversion routines in advance of attempting chdir.

--=20
Eric Blake   eblake@redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org


--------------enigBC420472F921E2A248D81155
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----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/

iEYEARECAAYFAkuROvkACgkQ84KuGfSFAYA10gCg0q3nJw5l+O/ba+erOSIcW85C
jM8An0rm+Lr9N6C4JfQ+Oy2vGEsYPia0
=NBH2
-----END PGP SIGNATURE-----

--------------enigBC420472F921E2A248D81155--
