This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: cygpath behaviour when input is not a path
- From: "Gary ." <cygwin at garydjones dot name>
- To: cygwin at cygwin dot com
- Date: Wed, 2 Jun 2010 17:26:06 +0200
- Subject: Re: cygpath behaviour when input is not a path
- References: <83d3wff7t5.fsf@garydjones.name> <837hmmenu0.fsf@garydjones.name> <AANLkTilbSnkvkJwetC20mzSWld48nOTYtDnKp8OXNQNh@mail.gmail.com> <83d3wdomiy.fsf@garydjones.name> <4C030C39.8020303@gmail.com> <AANLkTil4WCMkMxicHxGwfLVE-dwCHxW7wF7PyhO6zVZf@mail.gmail.com> <4C065B9C.4020301@gmail.com>
On 6/2/10, Dave Korn wrote:
> On 01/06/2010 09:19, Gary . wrote:
>>>> Since the tool
>>>> output is mixed paths and text, I'd hoped cygpath made "intelligent"
>>>> guesses about what was and was not likely to be a path.
...
>> Okay. So I'm SOL with tool output like
>> "Parse error: syntax error, unexpected '}' in
>> C:\cygwin\home\jg\work\foo.php on line 10"
>> then, short of parsing it myself :-(
>
> Hang on, isn't this is a bit far from your original question? You wanted
> to
> know what happens when cygpath is "given a PATH list ... without the -p
Lumme! I've been rumbled! Quick, Chopper, get the getaway car started, sharpish!
Or, more seriously, my original question was based on what I saw while
investigating looking at the tool output, that's all.
> have you ever heard the term GIGO?
Not only have I heard it, I've vast experience in it.
> cygpath expects anything you pass it is a path
Okay. That's what I was wondering. Thanks.
--
Gary
Non-kook (allegedly)
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple