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 To: cygwin AT cygwin DOT com Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , 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 : > 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