| delorie.com/archives/browse.cgi | search |
| X-Recipient: | archive-cygwin AT delorie DOT com |
| X-SWARE-Spam-Status: | No, hits=-0.6 required=5.0 tests=AWL,BAYES_00,SARE_MSGID_LONG40 |
| X-Spam-Check-By: | sourceware.org |
| MIME-Version: | 1.0 |
| In-Reply-To: | <4B9FE12F.4020008@hones.org.uk> |
| 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> <4B9FE12F DOT 4020008 AT hones DOT org DOT uk> |
| Date: | Wed, 17 Mar 2010 09:19:00 +0100 |
| Message-ID: | <485797401003170119v484779f0p28304ffe1491951@mail.gmail.com> |
| Subject: | Re: cygwin 1.7: why there is a directory E/cygwin/dev in the tree of cygwin ? |
| From: | rolandc <roland DOT cassard 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 |
2010/3/16 Cliff Hones <cliff AT hones DOT org DOT uk>:
> Andy Koppe wrote:
>> Christopher Faylor:
>>> rolandc:
>>>> I have installed cygwin 1.7 in e:\cygwin1.7
>>>> After installation, there is a "strange" directory :
>>>> =A0/E/cygwin1.7/dev/ (posix path)
>>>> =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.
>
> This looks to be the same as the following problem:
>
> http://cygwin.com/ml/cygwin/2009-07/msg00944.html
>
> -- Cliff
Indeed,
Also, I think I can delete this folder without problem.
I do not understand why the postinstall script bash.sh is so complex
DEVDIR=3D"$(cygpath -au "C:/$(cygpath -am /dev/)" | sed 's|/c/\(.\):/|/=
\1/|')"
mkdir -p "$DEVDIR" || result=3D1
it would be simple (too simple?) to
mkdir -p /dev || result=3D1
Regards,
--
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
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |