delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/01/29/09:56:03

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: slinky.cs.nyu.edu: pechtcha owned process doing -bs
Date: Thu, 29 Jan 2004 09:55:08 -0500 (EST)
From: Igor Pechtchanski <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: Cohen Dan <daniel_m_cohen AT yahoo DOT com>
cc: cygwin AT cygwin DOT com
Subject: Re: Can cygwin be configured to always use mixed path output types?
In-Reply-To: <20040129133901.58881.qmail@web13906.mail.yahoo.com>
Message-ID: <Pine.GSO.4.56.0401290950500.4101@slinky.cs.nyu.edu>
References: <20040129133901 DOT 58881 DOT qmail AT web13906 DOT mail DOT yahoo DOT com>
MIME-Version: 1.0

On Thu, 29 Jan 2004, Cohen Dan wrote:

> Hi,
>
> I have a project that requires me to use both cygwin and MKS.. MKS
> primarily uses paths like "c:/temp" and cygwin has the path
> "/cygdrive/c/temp".  I know I can use cygpath (cygpath -m
> /cygdrive/c/temp) to convert the cygwin path to "c:/temp" but that
> solution will be very time consuming to implement in the very large
> application I need to convert. I was wondering if there was a way to
> configure cygwin to work with the mixed path mode instead of using
> cygpath in my scripts.
>
> Thanks in advance.
> Dan

FWIW, Cygwin's file manipulation routines will understand the regular
Win32-style paths (make sure to quote the backslashes in your shell).
Programs that don't attempt to manipulate the paths themselves should work
just fine with Windows paths.  I believe (though I'm not as sure of it)
that a 'single-letter-followed-by-a-colon-followed-by-a-slash' pattern is
also used to indicate a Windows path and the DLL acts accordingly (i.e.,
mixed mode should also work).  If you want to make sure, look in the
latest version of winsup/cygwin/path.cc.

Of course, if some program does attempt to process the path itself (e.g.,
walk through directories, etc), all bets are off.  Also note that you will
lose the benefit of Cygwin mounts and symlinks if you stick to Windows
paths.
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha AT cs DOT nyu DOT edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor AT watson DOT ibm DOT com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster."  -- Patrick Naughton

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