X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-7.5 required=5.0	tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,SPF_HELO_PASS
X-Spam-Check-By: sourceware.org
Message-ID: <4EDA9E99.9030307@redhat.com>
Date: Sat, 03 Dec 2011 15:11:37 -0700
From: Eric Blake <eblake@redhat.com>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:8.0) Gecko/20111115 Thunderbird/8.0
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>  <4B913AF2.3070102@redhat.com> <20100305172048.GN7980@calimero.vinschen.de>
In-Reply-To: <20100305172048.GN7980@calimero.vinschen.de>
OpenPGP: url=http://people.redhat.com/eblake/eblake.gpg
Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------enigB14E16B5407CAA7453B6D2AB"
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

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

On 03/05/2010 10:20 AM, Corinna Vinschen wrote:

Rounding out a (super-old) thread on my dash todo list...

>>> $ 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.

>=20
> Works fine in Cygwin, I just tested it:
...
>   $ gcc -g -o chdir chdir.c
>   $ ./chdir C:/Windows
>   pwd: /cygdrive/c/Windows
>=20
> It's a problem in dash apparently.

I finally spent time in gdb figuring out what's going on.

The problem is that dash tries to convert c:/windows to an absolute
path, since it doesn't start with /.  I suppose I could teach dash to
recognize [letter]:/ as absolute paths, although that makes dash larger,
and puts a burden on me (since I can guarantee upstream dash won't
accept such a patch).

> I just don't care enough for DOS paths so I won't fix.

Me neither.  And since you can use /cygdrive/c, not c:/, I won't bother
to fix it.

--=20
Eric Blake   eblake@redhat.com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org


--------------enigB14E16B5407CAA7453B6D2AB
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.11 (GNU/Linux)
Comment: Public key at http://people.redhat.com/eblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBCAAGBQJO2p6aAAoJEKeha0olJ0NqJYwIAJqAHNPXne4uIUyBUEeKHbQ8
55WZCHmkJZyc7u1evxPGJfMgKfKdUUg2yxJnfPVDRduyndQlyexbApjvSkmALZ5o
1HfL7/EDHBYMQcXkOaTzylpy4litDnliINrcgkJWTXxTBOdLrnY14/OH2XITN+fF
QqjsvxCB4JsWDKZLBwR62Ogd80fLu5LKSibEuzkEJRv7catG+8CcPb+yIagVRb5F
pdPMlZLbivsqfqY8JOVF9FZNHCn/wWVpNdwjQLamaPcawZ77TaxHqPoQ4NtxsgDV
v5MoT4DFd0PIvO6bq8cf9Kf1q43UmPJBQJhKLhep+B68km0OZ4luXJbj4vpR+sk=
=hQnc
-----END PGP SIGNATURE-----

--------------enigB14E16B5407CAA7453B6D2AB--
