delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
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 |
Date: | Thu, 11 Aug 2005 11:42:22 -0400 |
From: | Christopher Faylor <cgf-no-personal-reply-please AT cygwin DOT com> |
To: | cygwin AT cygwin DOT com |
Subject: | Re: Programatically finding value of "cygdrive" prefix |
Message-ID: | <20050811154222.GJ16476@trixie.casa.cgf.cx> |
Reply-To: | cygwin AT cygwin DOT com |
References: | <081120051447 DOT 8407 DOT 42FB65010003437A000020D722007340760A050E040D0C079D0A AT comcast DOT net> |
Mime-Version: | 1.0 |
In-Reply-To: | <081120051447.8407.42FB65010003437A000020D722007340760A050E040D0C079D0A@comcast.net> |
User-Agent: | Mutt/1.5.8i |
On Thu, Aug 11, 2005 at 02:47:29PM +0000, Eric Blake wrote: >>>mount -p | sed -nr '2s,/([^ ]) +\S+ +\S+$,\1,p' >> >>that's what I also tried before sending my e-mail. it does not print >>anything. > >Oh right, I missed a + to make \1 be more than one character: > >mount -p | sed -nr '2s,/([^ ]+) +\S+ +\S+$,\1,p' And now we're back to not handling a cygdrive with imbedded spaces. We're really looping here. This is really degenerating into a "how do I use UNIX tools?" discussion which is really not a topic for this mailing list. Perhaps this should be moved to cygwin-talk. cgf -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |