Internal command not found in dos command line

View: New views
5 Messages — Rating Filter:   Alert me  

Internal command not found in dos command line

by Ethan Du :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.
Hi:
 
    I have a makefile like this:
... ...
clean:
 echo "ethan from space"

    When run "make clean" (GNU Make 3.81.2, built in cygwin) from a separate folder which only have make.exe and 3 dlls (cygiconv-2.dll, cygintl-8.dll, cygwin1.dll) from dos command line, I met the following:
make: echo: Command not found
make: *** [clean] Error 127
 
    With a little change in the makefile:
... ...
clean:
 cmd /c echo "ethan from space"

    It works. So, my question is: are the internal commands must be called with "cmd /c"? or what else is wrong?
 
Thanks,
Ethan
   


Express yourself instantly with MSN Messenger! MSN Messenger
_______________________________________________
Help-make mailing list
Help-make@...
http://lists.gnu.org/mailman/listinfo/help-make

Re: Internal command not found in dos command line

by Fabrice GIRARDOT :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Ethan Du wrote :

 >     It works. So, my question is: are the internal commands must be
 > called with "cmd /c"? or what else is wrong?


It looks like it's a problem with the "SHELL" variable.
As far as I understand, you run a cygwin binary tool (make)
from a DOS command line.
You should either set "SHELL" variable to cygwin's shell
in your Makefile, or run make from a cygwin command line.


--
Fabrice GIRARDOT



_______________________________________________
Help-make mailing list
Help-make@...
http://lists.gnu.org/mailman/listinfo/help-make

Re: Internal command not found in dos command line

by Alexander Kriegisch-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I do not think that this is a make problem as such, but the question
which shell your makefile uses. You may want to set SHELL accordingly
(to cmd.exe or to Cygwin's bash).
--
Alexander Kriegisch
Certified ScrumMaster
http://scrum-master.de

Ethan Du:

> clean:
>  echo "ethan from space"
>
>     When run "make clean" (GNU Make 3.81.2, built in cygwin) from a
> separate folder which only have make.exe and 3 dlls (cygiconv-2.dll,
> cygintl-8.dll, cygwin1.dll) from dos command line, I met the following:
> make: echo: Command not found
> make: *** [clean] Error 127
>  
>     With a little change in the makefile:
> ... ...
> clean:
>  cmd /c echo "ethan from space"
>
>     It works. So, my question is: are the internal commands must be
> called with "cmd /c"? or what else is wrong?



_______________________________________________
Help-make mailing list
Help-make@...
http://lists.gnu.org/mailman/listinfo/help-make

RE: Internal command not found in dos command line

by Ethan Du :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.

Thanks, just found my $SHELL was /bin/sh in that makefile.
 
- Ethan




> Date: Fri, 29 Feb 2008 10:23:33 +0100

> From: fgirardot@...
> To: help-make@...
> Subject: Re: Internal command not found in dos command line
>
>
> Ethan Du wrote :
>
> > It works. So, my question is: are the internal commands must be
> > called with "cmd /c"? or what else is wrong?
>
>
> It looks like it's a problem with the "SHELL" variable.
> As far as I understand, you run a cygwin binary tool (make)
> from a DOS command line.
> You should either set "SHELL" variable to cygwin's shell
> in your Makefile, or run make from a cygwin command line.
>
>
> --
> Fabrice GIRARDOT
>
>
>
> _______________________________________________
> Help-make mailing list
> Help-make@...
> http://lists.gnu.org/mailman/listinfo/help-make



Express yourself instantly with MSN Messenger! MSN Messenger
_______________________________________________
Help-make mailing list
Help-make@...
http://lists.gnu.org/mailman/listinfo/help-make

Re: Internal command not found in dos command line

by Padma Iyenghar :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello,

I had the same issue. It really helped. Thanks

Padma

Fabrice GIRARDOT wrote:
Ethan Du wrote :

 >     It works. So, my question is: are the internal commands must be
 > called with "cmd /c"? or what else is wrong?


It looks like it's a problem with the "SHELL" variable.
As far as I understand, you run a cygwin binary tool (make)
from a DOS command line.
You should either set "SHELL" variable to cygwin's shell
in your Makefile, or run make from a cygwin command line.


--
Fabrice GIRARDOT



_______________________________________________
Help-make mailing list
Help-make@gnu.org
http://lists.gnu.org/mailman/listinfo/help-make