www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/07/30/14:22:04

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 <ericblake AT comcast DOT net>
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
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

> >   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

- Raw text -


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