[Top][All Lists]

[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 15:42:34 -0500
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv: Gecko/20060124 Firefox/

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

Just a note: changing SHELL _shouldn't_ be dangerous in the way you mention,
Eli.  On UNIX, at any rate, if SHELL is not set to an acknowledged value for
a Bourne shell then make doesn't even try to use the fast path: all
invocations of commands are sent to the SHELL command via the slow path.  So,
issues of quoting, etc. are not relevant: the whole thing is handed to the
shell regardless and whatever quoting rules apply there will be followed. 
Note that, since you changed SHELL, it's obviously up to you to ensure that
your commands work properly!  If that's not the case in Windows (and from
what you've written here it doesn't appear to be) then that's a bug.

The only real problem for changing the shell is the one I mentioned in
comment #3: there's no way to change the argument from "-c" to something else
(or nothing).  So if the program you want to use for SHELL doesn't grok -c you
have to wrap it in something that does.


Reply to this item at:


  Message sent via/by Savannah

reply via email to

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