Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm 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 Date: Thu, 2 Oct 2003 22:47:25 +0200 From: Corinna Vinschen To: cygwin AT cygwin DOT com Subject: Re: #! not a recognized internal or external command Message-ID: <20031002204725.GA11435@cygbert.vinschen.de> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.1i On Thu, Oct 02, 2003 at 12:08:25PM -0700, Neil Messmer wrote: > I have just installed the latest version of cygwin and get the following > error message when running my scripts while running cygwin under Win XP. It > does not matter what shell I specify for the script. > > My paths on the win pc is set to /usr/local/bin; /usr/bin; /bin; > /usr/x11r6/bin. > > The simple test script contains one line: > #! /bin/tsch s/tsch/tcsh but the *real* problem is that you're trying to start a shell script under cmd.exe. That won't work. The error message is generated by cmd.exe because it correctly doesn't recognize #! as a command. The #! syntax requires support by the starting application, in your case, by Cygwin. If the starting application is not a Cygwin shell, you must start the script as a parameter to the right shell: C:\foo> tcsh script-name Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Developer mailto:cygwin AT cygwin DOT com Red Hat, Inc. -- 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/