X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-2.1 required=5.0 tests=AWL,BAYES_00,SPF_PASS X-Spam-Check-By: sourceware.org Date: Thu, 30 Jul 2009 18:21:49 +0000 (UTC) From: Eric Blake To: cygwin AT cygwin DOT com Message-ID: <1894207645.6825061248978109933.JavaMail.root@sz0059a.emeryville.ca.mail.comcast.net> In-Reply-To: <20090728144024.GU18621@calimero.vinschen.de> Subject: Re: Odd directory created when installing 1.7 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit 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 > > DEVDIR="$(cygpath -au "C:/$(cygpath -am /dev/)" | sed > 's|/c/\(.\):/|/\1/|')" > > mkdir -p "$DEVDIR" || result=1 > > Hmm, this looks kind of fragile. Not to say it looks wrong. > > $ cygpath -am /dev/ > C:/cygwin/dev > > Ok. > > $ echo "C:/$(cygpath -am /dev/)" > C:/C:/cygwin/dev I didn't invent this, but borrowed the idea from the old mkdev script (did Igor write that?). But there is certainly the possibility that it can be made more robust, especially in the face of 1.7 mount changes. I'll have to take a look at it in depth when I get a chance (won't be for two more weeks; right now I'm on vacation with only limited email access). -- Eric Blake -- 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