delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/10/12/21:11:51

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Date: Tue, 12 Oct 2010 21:11:27 -0400
From: Christopher Faylor <cgf-use-the-mailinglist-please AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: nodosfilewarning not working
Message-ID: <20101013011127.GA14097@ednor.casa.cgf.cx>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <29948673 DOT post AT talk DOT nabble DOT com>
MIME-Version: 1.0
In-Reply-To: <29948673.post@talk.nabble.com>
User-Agent: Mutt/1.5.20 (2009-06-14)
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, Oct 12, 2010 at 05:49:31PM -0700, Autotoonz wrote:
>Executing scripts with DOS style pathnames causes the following error:
>MS-DOS style path detected
>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
>
>Annoyingly, setting a local environment variable *doesn't* turn off
>this warning, and possibly as a form of punishment to DOS users there
>is no further information in the Help and FAQ.

It's best to eschew the annoyance and conspiracy theories if you don't
completely understand what's going on and actually want help.

>Here is the command line I'm running: C:\cygwin\bin\bash --login
>C:\test\test.sh

Something like this works fine:

c:\>bash
bash$ export CYGWIN=nodosfilewarning
bash$ cat "c:\autoexec.bat"

and so does:

c:\>set CYGWIN=nodosfilewarning
c:\>C:\cygwin\bin\bash --login C:\test\test.sh

You may need to create a .bat file if you want to just do the latter.

cgf

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