X-Spam-Check-By: sourceware.org
Date: Tue, 3 Apr 2007 17:36:29 -0400
From: Christopher Faylor <cgf-use-the-mailinglist-please@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: Cygwin snapshot and 'last-cache' file
Message-ID: <20070403213629.GC13398@ednor.casa.cgf.cx>
Reply-To: cygwin@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
References: <Pine.OSF.4.21.0704032246400.7123-100000@ax0rm1.roma1.infn.it>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <Pine.OSF.4.21.0704032246400.7123-100000@ax0rm1.roma1.infn.it>
User-Agent: Mutt/1.5.14 (2007-02-12)
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 03, 2007 at 11:00:42PM +0200, Angelo Graziosi wrote:
>The file /etc/setup/last-cache contains path in DOS-like style:
>
>   C:\cygwin\home\Angelo\Downloads\cygwin

setup.exe is not a cygwin program.

>When a script tries to retrive this information from 'last-cache' under
>the snapshot (for 1.7.0 release) there is the warning:

"a script"?  As in a script that you wrote?

>  cygwin warning:
>  MS-DOS style path detected: C:/cygwin/home/Angelo/Downloads/cygwin
>  Preferred POSIX equivalent is: /home/Angelo/Downloads/cygwin
>  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
>
>... and I remember some discussion (MAKE-3.81 etc.) in which you were
>reluctanct in accepting the DOS-like paths.

So, if you grab some data from a random file on the system and that
file contains a DOS path and you then try to use the DOS path under
cygwin, you will get a warning which explains that it's not a good
idea to use DOS paths along with information about how to avoid getting
the warning.

Seems like everything is working as designed.  OTOH, if the above
script is something from the cygwin distribution then please be more
specific so that it can be fixed.

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/

