delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-SWARE-Spam-Status: | No, hits=-2.1 required=5.0 tests=AWL,BAYES_00 |
X-Spam-Check-By: | sourceware.org |
Message-ID: | <4BA11F95.2000008@hones.org.uk> |
Date: | Wed, 17 Mar 2010 18:29:41 +0000 |
From: | Cliff Hones <cliff AT hones DOT org DOT uk> |
User-Agent: | Thunderbird 2.0.0.23 (Windows/20090812) |
MIME-Version: | 1.0 |
To: | cygwin AT cygwin DOT com |
Subject: | Re: cygwin 1.7: why there is a directory E/cygwin/dev in the tree of cygwin ? |
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> <485797401003170119v484779f0p28304ffe1491951 AT mail DOT gmail DOT com> <4BA11DB7 DOT 8030804 AT redhat DOT com> |
In-Reply-To: | <4BA11DB7.8030804@redhat.com> |
X-Spam-Score: | 0.0 (/) (dominator.watchfront.net.uk) |
X-Spam-Report: | dominator.watchfront.net.uk has scanned this email for spam. Results:- BAYES_50=0.001 (total 0.0, current threshold 4.0) |
X-IsSubscribed: | yes |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.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 |
Eric Blake wrote: > On 03/17/2010 02:19 AM, rolandc wrote: >> I do not understand why the postinstall script bash.sh is so complex >> >> DEVDIR="$(cygpath -au "C:/$(cygpath -am /dev/)" | sed 's|/c/\(.\):/|/\1/|')" >> mkdir -p "$DEVDIR" || result=1 >> >> it would be simple (too simple?) to >> mkdir -p /dev || result=1 > > Yes, it would be too simple. /dev already exists, so the mkdir would > fail to do anything useful. We REALLY want to create the underlying > Windows directory at the same location at where /dev would be mounted, > and to do that, we really do want to know the windows location (drive > letter and all) of /. Then, by using mkdir of that fancy windows path > that happens to live at the same place as where /dev normally resolves > to, then we can guarantee that /dev/stdin gets created as an actual > symlink in the windows heirarchy (since it does NOT resolve via the /dev > magic mount point), and that tab-completion can see any contents placed > into the windows counterpart directory. Eric, are you sure bash post-install needs to bother to make /dev? When this was raised last July, Corinna said: > What this postinstall script should do is just this: > > mkdir -p /dev || result=1 > > or to drop the mkdir entirely since the /dev/ dir has been already > created by the 000-cygwin-post-install.sh script. -- Cliff -- 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 |