bug-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #15718] Weird behavior of the SHELL variable on Win32


From: Paul D. Smith
Subject: [bug #15718] Weird behavior of the SHELL variable on Win32
Date: Mon, 13 Feb 2006 04:06:04 -0500
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8) Gecko/20060110 Debian/1.5.dfsg-4 Firefox/1.5

Follow-up Comment #3, bug #15718 (project make):

If you want to have Perl execute a program on the command line you have to
give it the -e option (see the Perl manual).  Running "perl foo" causes Perl
to try to execute the file named "foo".  If you want to run a Perl script on
the command line, which is what make wants to do, then you have to use -e.

Now the bad news: make doesn't support this.  Make always invokes its
commands using the syntax "$(SHELL) -c <script>", and there's no way to
change that -c to anything else.  This is something I've long considered
fixing, by adding a SHELLFLAGS variable or something that could be overridden
by the makefile--even in UNIX without changing SHELL this is handy; some
people would prefer to invoke /bin/sh with the -e option as well as the -c
option.

The only way to get around it right now is write a little script wrapper that
takes arguments of the form make provides, then invokes Perl with the proper
translation of those arguments.

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?func=detailitem&item_id=15718>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]