delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/06/04/12:19:05

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
X-Authentication-Warning: slinky.cs.nyu.edu: pechtcha owned process doing -bs
Date: Fri, 4 Jun 2004 12:18:45 -0400 (EDT)
From: Igor Pechtchanski <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: "Karr, David" <david DOT karr AT wamu DOT net>
cc: cygwin AT cygwin DOT com
Subject: Re: Strategy to process all tokens on a line through "cygpath -w", ignoring non-path tokens
In-Reply-To: <0C260F619E428642BFA6380177C3ADF3A3FD18@exmsea005.us.wamu.net>
Message-ID: <Pine.GSO.4.58.0406041213460.2262@slinky.cs.nyu.edu>
References: <0C260F619E428642BFA6380177C3ADF3A3FD18 AT exmsea005 DOT us DOT wamu DOT net>
MIME-Version: 1.0
X-Scanned-By: MIMEDefang 2.39

On Fri, 4 Jun 2004, Karr, David wrote:

> I have a situation where I have a command line that I need to preprocess
> with "cygpath -w", changing all tokens which represent paths to convert
> them to their windows equivalent.  All other tokens should pass through
> unchanged.  Is there already a canned solution for this?  What would be
> a reasonable strategy to get this done?

In general it's impossible without some heuristics or application
knowledge.  For one example on how to do this, see the java* wrapper
scripts that I posted to this list a while ago (e.g.,
<http://cygwin.com/ml/cygwin/2003-01/msg00174.html> or see them in CVS at
<http://sources.redhat.com/cgi-bin/cvsweb.cgi/wrappers/java/?cvsroot=cygwin-apps>).
HTH,
	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