cygwin 1.7: why there is a directory E/cygwin/dev in the tree of cygwin ?

Eric Blake eblake@redhat.com
Wed Mar 17 18:22:00 GMT 2010


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.
> 
> Looks like a bug to me, and the finger of blame points at
> /etc/postinstall/{00,}bash.sh:
> 
> DEVDIR="$(cygpath -au "C:/$(cygpath -am /dev/)" | sed 's|/c/\(.\):/|/\1/|')"
> mkdir -p "$DEVDIR" || result=1
> 
> 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.

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 323 bytes
Desc: OpenPGP digital signature
URL: <http://cygwin.com/pipermail/cygwin/attachments/20100317/15430842/attachment.sig>


More information about the Cygwin mailing list