Oops, don't use the SHELL environment variable after all.

Reading the docs for GNU make more closely, it seems they *don't* use the
one from the environment, because the user's interactive shell preferences
shouldn't affect how the Makefile runs.  Good point.

In a Makefile, you can define SHELL explicitly, and that works.  But let's
worry about that some other time.
This commit is contained in:
Avery Pennarun 2010-11-15 20:46:09 -08:00
commit 8aea96cc90

View file

@ -97,7 +97,7 @@ def _build(t):
tmpname = '%s.redo.tmp' % t
unlink(tmpname)
f = open(tmpname, 'w+')
argv = [os.environ.get('SHELL', 'sh'), '-e',
argv = ['sh', '-e',
os.path.basename(dofile),
os.path.basename(t), 'FIXME', os.path.basename(tmpname)]
if vars.VERBOSE: