This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: #! not a recognized internal or external command


I should also mention that the script was executed within a cygwin shell
window when this error occurred.
"Neil Messmer" <nmessmer@octigabay.com> wrote in message
bli8s9$ajd$1@sea.gmane.org">news:bli8s9$ajd$1@sea.gmane.org...
> I would have thought the paths set in your particuliar environment would
> have enabled to the find the correct shell for proper execution.
>
> I am still convinced it is a setup issue as it works on another machine
> here. OS versions and hardware are identical.
>
> "Corinna Vinschen" <corinna-cygwin@cygwin.com> wrote in message
> 20031002204725.GA11435@cygbert.vinschen.de">news:20031002204725.GA11435@cygbert.vinschen.de...
> > 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@cygwin.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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]