This is the mail archive of the cygwin mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Strategy to process all tokens on a line through "cygpath -w", ignoring non-path tokens

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.,
<> or see them in CVS at
      |\      _,,,---,,_
ZZZzz /,`.-'`'    -.  ;-;;,_
     |,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:
Problem reports:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]