delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2011/12/03/17:12:02

X-Recipient: archive-cygwin AT delorie DOT 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 AT redhat DOT com>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:8.0) Gecko/20111115 Thunderbird/8.0
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: [ANNOUNCEMENT] [1.7] Updated: dash-0.5.5.1-2; Obsolete: ash
References: <announce DOT 4A5C7A2B DOT 4020700 AT byu DOT net> <4B5860C9 DOT 50100 AT sidefx DOT com> <4B591221 DOT 10501 AT byu DOT net> <4B91105B DOT 7050205 AT sidefx DOT com> <20100305152637 DOT GK7980 AT calimero DOT vinschen DOT de> <4B913788 DOT 40301 AT sidefx DOT com> <4B913AF2 DOT 3070102 AT redhat DOT com> <20100305172048 DOT GN7980 AT calimero DOT vinschen DOT de>
In-Reply-To: <20100305172048.GN7980@calimero.vinschen.de>
OpenPGP: url=http://people.redhat.com/eblake/eblake.gpg
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

--------------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 AT redhat DOT 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--

- Raw text -


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