delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/06/02/11:26:33

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-0.9 required=5.0 tests=AWL,BAYES_05,TW_YG
X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
In-Reply-To: <4C065B9C.4020301@gmail.com>
References: <83d3wff7t5 DOT fsf AT garydjones DOT name> <837hmmenu0 DOT fsf AT garydjones DOT name> <AANLkTilbSnkvkJwetC20mzSWld48nOTYtDnKp8OXNQNh AT mail DOT gmail DOT com> <83d3wdomiy DOT fsf AT garydjones DOT name> <4C030C39 DOT 8020303 AT gmail DOT com> <AANLkTil4WCMkMxicHxGwfLVE-dwCHxW7wF7PyhO6zVZf AT mail DOT gmail DOT com> <4C065B9C DOT 4020301 AT gmail DOT com>
Date: Wed, 2 Jun 2010 17:26:06 +0200
Message-ID: <AANLkTikEL0NvJxkIU0U19BeBnabukvRdQQheFGU3-Jsx@mail.gmail.com>
Subject: Re: cygpath behaviour when input is not a path
From: "Gary ." <cygwin AT garydjones DOT name>
To: cygwin AT cygwin DOT com
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT 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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019