delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/03/17/13:20:16

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-9.6 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,SPF_HELO_PASS
X-Spam-Check-By: sourceware.org
Message-ID: <4BA11D18.5040203@redhat.com>
Date: Wed, 17 Mar 2010 12:19:04 -0600
From: Eric Blake <eblake AT redhat DOT com>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.8) Gecko/20100301 Fedora/3.0.3-1.fc12 Lightning/1.0b1 Thunderbird/3.0.3
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: cygwin 1.7: why there is a directory E/cygwin/dev in the tree of cygwin ?
References: <485797401003160836l4a74aee2q527fa059765502a9 AT mail DOT gmail DOT com> <20100316154432 DOT GB18610 AT ednor DOT casa DOT cgf DOT cx> <416096c61003160854v4f18669ep57635447a8b55061 AT mail DOT gmail DOT com>
In-Reply-To: <416096c61003160854v4f18669ep57635447a8b55061@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

--------------enig2B01072A5540411F749A7211
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

On 03/16/2010 09:54 AM, Andy Koppe wrote:
> /dev would be E:\cygwin1.7\dev, not E:\cygwin1.7\E\cygwin1.7\dev.
>=20
> Looks like a bug to me, and the finger of blame points at
> /etc/postinstall/{00,}bash.sh:
>=20
> DEVDIR=3D"$(cygpath -au "C:/$(cygpath -am /dev/)" | sed 's|/c/\(.\):/|/\1=
/|')"
> mkdir -p "$DEVDIR" || result=3D1
>=20
> I haven't stared at the sed magic long enough to work out exactly what
> it does or why, but it looks suspiciously like it assumes that Cygwin
> is installed on the C drive.

No, it was a hack picked up from Igor that forces cygpath into a drive
letter resolution using an arbitrary drive letter (c:, for lack of
anything better), then undoes the hack to get back at the real path
name.  But while I know it worked for cygwin 1.5, it is highly possible
that changes in cygwin 1.7 have rendered the hack bit-rotted.  I may
need to do a new release of bash that is guaranteed to better work with
installations into non-C: drives.

Thanks for the heads-up.

--=20
Eric Blake   eblake AT redhat DOT com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org
volunteer cygwin bash maintainer


--------------enig2B01072A5540411F749A7211
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.10 (GNU/Linux)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/

iEUEARECAAYFAkuhHRgACgkQ84KuGfSFAYAqdwCWNTJuNda6WmMERzkpqFqyizzq
VwCfWiw3BqehbYpwJgJo+lwSy2SsDy8=
=TYkT
-----END PGP SIGNATURE-----

--------------enig2B01072A5540411F749A7211--

- Raw text -


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