delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/10/21/19:56:29

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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
X-Authentication-Warning: mdssirds.comp.pge.com: esp5 set sender to esp5 AT pge DOT com using -f
Date: Tue, 21 Oct 2003 16:50:15 -0700
From: Edward Peschko <esp5 AT pge DOT com>
To: Brian Dessent <brian AT dessent DOT net>
Cc: cygwin AT cygwin DOT com
Subject: Re: pwd option to return windows path
Message-ID: <20031021235015.GA1229@mdssirds.comp.pge.com>
References: <20031021230957 DOT GA1071 AT mdssirds DOT comp DOT pge DOT com> <20031021232613 DOT GB7132 AT redhat DOT com> <3F95C2ED DOT EFB00C74 AT dessent DOT net>
Mime-Version: 1.0
In-Reply-To: <3F95C2ED.EFB00C74@dessent.net>
User-Agent: Mutt/1.4.1i

On Tue, Oct 21, 2003 at 04:36:13PM -0700, Brian Dessent wrote:
> Christopher Faylor wrote:
> 
> > >I've been using a hack through the environmental variable !C:
> > >(provided by tcsh) and pwd in order to return a windows32 path
> > >(ie: C:/cygwin/...)
> > >
> > >There's *got* to be a better way to do this. Is there a switch to pwd
> > >that returns a windows path instead of a unix one? Or, if not,
> > >what's the proper way to do this?
> > 
> > There is no option.
> 
> If your "terse cgf reply decoder ring" has not yet arrived, you may be
> interested in "man cygpath", e.g. "cygpath -w `pwd`".

yeah, I did a little more mucking around and came up with cygpath. Its not the most 
obvious place to find that information though, nothing in unix screams out 'cygpath is
what you want!!!' since there *are* no unix analogs. I think that the same options that 
are on cygpath should also be on pwd; this might make things a little more user friendly. 

Ed

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

- Raw text -


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