X-Spam-Check-By: sourceware.org To: cygwin AT cygwin DOT com From: Michael Hoffman Subject: Re: .exe magic Date: Wed, 18 Apr 2007 09:25:23 +0100 Lines: 31 Message-ID: References: <46254976 DOT 4000308 AT cygwin DOT com> <4625D0FC DOT 7020509 AT users DOT sourceforge DOT net> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit User-Agent: Thunderbird 1.5.0.8 (Windows/20061025) In-Reply-To: <4625D0FC.7020509@users.sourceforge.net> X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: 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 Frank Fesevur wrote: > Larry Hall (Cygwin) wrote: >> Here's a naive thought. See if it makes any sense. We have lots of >> complicated logic to try to transparently handle ".exe" extensions. >> We have ".exe" extensions because Windows 9x/Me requires it to execute >> binaries. For the upcoming Cygwin 1.7 release (date TBD), we're dropping >> support for Windows 9x/Me. Does it follow that complex ".exe" logic >> could be dropped from 1.7 as a result? > > We have quite some Scheduled Tasks that run bash scripts. The command > line is like this: > C:\Cygwin\bin\bash.exe --login -c /home/administrator/MySQL-backup.sh > > It starts in C:\Cygwin\bin and they work fine right now. I have just > tested it (copied bash.exe to bash_test) and it does not seem to be a > problem for Scheduled task. > > BUT when I open a command prompt, go to c:\cygwin\bin and try start > bash_test it does not find it. Just bash starts fine. > > C:\Cygwin\bin>bash > bash-3.2$ exit > > C:\Cygwin\bin>bash_test > bash_test wordt niet herkend als een interne > of externe opdracht, programma of batchbestand. Well, it will work if you set PATHEXT=%PATHEXT%:. but there might well be other consequences. -- Michael Hoffman -- 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/