X-Recipient: archive-cygwin@delorie.com
X-Spam-Check-By: sourceware.org
Date: Tue, 21 Apr 2009 19:50:20 -0400
From: Christopher Faylor <cgf-use-the-mailinglist-please@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: [1.7] Backslash incorrectly triggers DOS style path warning
Message-ID: <20090421235020.GA593@ednor.casa.cgf.cx>
Reply-To: cygwin@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
References: <49EC78A0.6050602@cornell.edu> <49EC7A7D.2050706@cornell.edu> <20090420211453.GB3143@ednor.casa.cgf.cx> <f60fe000904211641l558faa99r957730125f8cd7ab@mail.gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <f60fe000904211641l558faa99r957730125f8cd7ab@mail.gmail.com>
User-Agent: Mutt/1.5.16 (2007-06-09)
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

On Tue, Apr 21, 2009 at 07:41:06PM -0400, Mark J. Reed wrote:
>On Monday, April 20, 2009, Christopher Faylor wrote:
>> It isn't really erroneous. ??Something (awk) is trying to open a filename
>> with that includes backslashes, so cygwin1.dll thinks that it is trying
>> to open a DOS path.
>
>Except it looks like, from what's pasted above, that it's actually a
>non-filename backslash that's triggering it - the backslash inside an
>awk pattern, in this case.  It's seeing the regex /^\s/ and
>recommending that it be replaced with /^/s/.  Clearly the trigger is
>overzealous...

Clearly you aren't getting this.

Cygwin isn't scanning command lines looking for backslashes to scold you
about.  The line in question was somehow used as an argument to open()
or stat() or access() or some other function which takes a filename
argument.  The fact that a human being can look at the line and conclude
that it isn't a filename is irrelevant.  Cygwin saw a backslash in a
filespec and complained about it.  That's how it works.

cgf

--
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/

