Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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 Reply-To: cygwin AT cygwin DOT com To: "Karr, David" 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: References: <0C260F619E428642BFA6380177C3ADF3A3FD18 AT exmsea005 DOT us DOT wamu DOT net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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., or see them in CVS at ). 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/