Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
To: cygwin@cygwin.com
From: Graucsh <jgogolin@tampabay.rr.com>
Subject: Re: Can cygwin be configured to always use mixed path output types?
Date: Thu, 29 Jan 2004 17:52:36 -0500
Lines: 22
Message-ID: <bvc2ug$3c5$1@sea.gmane.org>
References: <20040129201608.92607.qmail@web13904.mail.yahoo.com> <Pine.GSO.4.56.0401291536170.20756@slinky.cs.nyu.edu> <bvc0f1$ss2$1@sea.gmane.org> <Pine.GSO.4.56.0401291724450.20756@slinky.cs.nyu.edu>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
X-Complaints-To: usenet@sea.gmane.org
Gmane-NNTP-Posting-Host: pcibizpdc.pciusa.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6b) Gecko/20031205 Thunderbird/0.4
In-Reply-To: <Pine.GSO.4.56.0401291724450.20756@slinky.cs.nyu.edu>

Igor Pechtchanski wrote:

> Besides, you can do it much simpler in sed, something like
> 
> alias pwd='pwd | sed -e"s,^/cygdrive/\(.\),\1:," -eTz -e"s,/,\\\,g" -e:z'
> 
> Or, since the OP wanted the mixed style ('/' instead of '\') even this
> 
> alias pwd='pwd | sed -e"s,^/cygdrive/\(.\),\1:,"'
> 
> :-)
> 	Igor

I see I have much to learn about sed, beyond the obvious of combining
steps I missed.  Thanks; that will help clean up another tidbit I've
done to check the path for multiple copies of cygwin1.dll.

Apparently, I have much to learn about Thunderbird, too, as I thought I
had it configured to wrap lines for me at 72 characters, which my prior
post obviously didn't.

John


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

