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> <83d3wdomiy DOT fsf AT garydjones DOT name> <4C030C39 DOT 8020303 AT gmail DOT com> <4C065B9C DOT 4020301 AT gmail DOT com> Date: Wed, 2 Jun 2010 17:26:06 +0200 Message-ID: Subject: Re: cygpath behaviour when input is not a path From: "Gary ." To: cygwin AT cygwin DOT com Content-Type: text/plain; charset=ISO-8859-1 X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: 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 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