This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: Strategy to process all tokens on a line through "cygpath -w", ignoring non-path tokens
- From: Igor Pechtchanski <pechtcha at cs dot nyu dot edu>
- To: "Karr, David" <david dot karr at wamu dot net>
- Cc: cygwin at cygwin dot com
- Date: Fri, 4 Jun 2004 12:18:45 -0400 (EDT)
- Subject: Re: Strategy to process all tokens on a line through "cygpath -w", ignoring non-path tokens
- References: <0C260F619E428642BFA6380177C3ADF3A3FD18@exmsea005.us.wamu.net>
- Reply-to: cygwin at cygwin dot com
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/