www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/07/12/20:36:27

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS
X-Spam-Check-By: sourceware.org
Message-ID: <4A5A8040.802@cygwin.com>
Date: Sun, 12 Jul 2009 20:30:56 -0400
From: "Larry Hall (Cygwin)" <reply-to-list-only-lh AT cygwin DOT com>
Reply-To: cygwin AT cygwin DOT com
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.21) Gecko/20090320 Remi/2.0.0.21-1.fc8.remi Lightning/0.9 Thunderbird/2.0.0.21 Mnenhy/0.7.5.0
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: safe to turn off the MS-DOS path warning?
References: <CA4C18A17BB546B6BD514C4AD40BFF5D AT ZOUZOU>
In-Reply-To: <CA4C18A17BB546B6BD514C4AD40BFF5D@ZOUZOU>
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.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

Zouzou wrote:
> hi,
> 
> i have recently updated to Cygwin 1.7 and started encountering some of 
> these warnings:
>  MS-DOS style path detected: C:\Documents\[...]
>  Preferred POSIX equivalent is: /cygdrive/c/Documents/[...]
>  CYGWIN environment variable option "nodosfilewarning" turns off this 
> warning.
>  Consult the user's guide for more details about POSIX paths:
>    http://cygwin.com/cygwin-ug-net/using.html#using-pathnames
> 
> i've read the above page as well as a few threads in this list 
> mentioning it, but still don't know what is the reason this warning was 
> added in the first place. is it only in a try to build an ideal world 
> where people would never be using Win paths, in which case i can safely 
> turn the warning off? or are there possible bugs that justify the raison 
> d'ĂȘtre of the warn, and it would be wrong of me to close my eyes on it?

If you're asking if DOS path syntax warning exists because of bugs in
Cygwin or elsewhere, then the answer is no, there is no such bug.

> specifically, the place where i am hitting this most is a set of Perl 
> scripts that i call with the "perl" command. this in turn is part of 
> makefiles so i can't run cygpath or other conversions to change the way 
> the "perl" command is called. so far, it seems to be working fine as it 
> always has with Cygwin 1.5, so i'm thinking of just turning the warning 
> off; but i would like to know if there are possible issues i can run 
> into in the future if i choose to do that.

DOS path name syntax in Cygwin is supported insofar as there is no conflict
with POSIX paths.  Where there is a conflict (or a performance issue), a
choice is made to follow POSIX conventions rather than DOS.

If it worked under 1.5, chances are it will continue to work without
change under 1.7.  If not, you'll need to look at what you're doing and
see if you can push things more to one side or the other.

-- 
Larry Hall                              http://www.rfk.com
RFK Partners, Inc.                      (508) 893-9779 - RFK Office
216 Dalton Rd.                          (508) 893-9889 - FAX
Holliston, MA 01746

_____________________________________________________________________

A: Yes.
 > Q: Are you sure?
 >> A: Because it reverses the logical flow of conversation.
 >>> Q: Why is top posting annoying in email?

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