delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/04/03/17:36:47

X-Spam-Check-By: sourceware.org
Date: Tue, 3 Apr 2007 17:36:29 -0400
From: Christopher Faylor <cgf-use-the-mailinglist-please AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: Cygwin snapshot and 'last-cache' file
Message-ID: <20070403213629.GC13398@ednor.casa.cgf.cx>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <Pine DOT OSF DOT 4 DOT 21 DOT 0704032246400 DOT 7123-100000 AT ax0rm1 DOT roma1 DOT infn DOT it>
MIME-Version: 1.0
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 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 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/

- Raw text -


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