This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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

Attachment: signature.asc
Description: OpenPGP digital signature


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]