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

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL,BAYES_00,SARE_MSGID_LONG40
X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
In-Reply-To: <20100316154432.GB18610@ednor.casa.cgf.cx>
References: <485797401003160836l4a74aee2q527fa059765502a9 AT mail DOT gmail DOT com> <20100316154432 DOT GB18610 AT ednor DOT casa DOT cgf DOT cx>
Date: Tue, 16 Mar 2010 15:54:59 +0000
Message-ID: <416096c61003160854v4f18669ep57635447a8b55061@mail.gmail.com>
Subject: Re: cygwin 1.7: why there is a directory E/cygwin/dev in the tree of cygwin ?
From: Andy Koppe <andy DOT koppe AT gmail DOT com>
To: cygwin AT cygwin DOT com
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT 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

Christopher Faylor:
> rolandc:
>>I have installed cygwin 1.7 in e:\cygwin1.7
>>After installation, there is a "strange" directory :
>> =C2=A0/E/cygwin1.7/dev/ (posix path)
>> =C2=A0E:\cygwin1.7\E\cygwin1.7\dev (win32 path)
>>
>>What is the role of this directory?
>
> It is "/dev".

/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=3D"$(cygpath -au "C:/$(cygpath -am /dev/)" | sed 's|/c/\(.\):/|/\1/|=
')"
mkdir -p "$DEVDIR" || result=3D1

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.

Andy

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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