This is the mail archive of the cygwin@sourceware.cygnus.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]

Re: Make SHELL variable


Jeffery G. Smith wrote:
> 
> I notice that when make executes a command it actually does a
>         $(SHELL) -c command
> 
> This appears to be a GNU make thing since it happens on our standard
> UNIX platforms as well.  I wasn't able to find any documentation that
> admitted that this -c was added or how to get rid of it.  I really would
> like to be able to use cmd.exe as the SHELL but the -c gets in the way.
> 

In most of cases use of bash/sh is much more convinient and handy
(I don't want even speak about complex comands, etc.). I agree that
there are special cases when the command requires a special shell,
say CMD.EXE. In such a case I'm using the following command (an example):

target:		deps
	export COMSPEC="$(SYSTEMROOT)\system32\cmd.exe" && my_cmd my args

This works fine with the default shell sh(bash) - at least for me :-).

---------------------------------
        Anatoly Kardash 
    Infrastructure Team Leader
        MiSSiNG LiNK B.V.
---------------------------------
 11 Habonim st. Ramat-Gan 52462
            Israel
e-mail: anatoly@missinglink.co.il
phone:  +972-3-6133160
fax:    +972-3-6133161
---------------------------------
-
For help on using this list, send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".


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