X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-1.3 required=5.0 tests=AWL,BAYES_00,TW_CG,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Message-ID: <4CB5093E.4010103@tundraware.com> Date: Tue, 12 Oct 2010 20:19:58 -0500 From: Tim Daneliuk User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.9) Gecko/20100915 Thunderbird/3.1.4 MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: nodosfilewarning not working References: <29948673 DOT post AT talk DOT nabble DOT com> <20101013011127 DOT GA14097 AT ednor DOT casa DOT cgf DOT cx> In-Reply-To: <20101013011127.GA14097@ednor.casa.cgf.cx> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-TundraWare-MailScanner-Information: Please contact the ISP for more information X-TundraWare-MailScanner-ID: o9D1Jr3M046109 X-TundraWare-MailScanner: Found to be clean X-TundraWare-MailScanner-From: tundra AT tundraware DOT com X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , 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 10/12/2010 8:11 PM, Christopher Faylor wrote: > 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 > You can also permanently set this environment variable from Windows itself so that all instantiations of cygwin environments - regardless of shell will see it. -- ---------------------------------------------------------------------------- Tim Daneliuk tundra AT tundraware DOT com PGP Key: http://www.tundraware.com/PGP/ -- 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