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

Igor Pechtchanski pechtcha@cs.nyu.edu
Fri Jun 4 16:18:00 GMT 2004


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@cs.nyu.edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor@watson.ibm.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/



More information about the Cygwin mailing list