[Scons-users] env.command fails on mingw shell

Gary Oberbrunner garyo at oberbrunner.com
Thu Oct 25 18:24:44 EDT 2012


On Thu, Oct 25, 2012 at 6:20 PM, Kraus Philipp
<philipp.kraus at flashpixx.de>wrote:


> I describe here the Win7 with MinGW shell system and I get only on this

> systems the errors with the semicolon. If I run the command above in the

> native shell window (not from env.Command)

> the combination with the ; works without errors, so there is a difference

> on calling env.Command with the same command.

>


Correct. On a cygwin python the ";" will work, because the command is
executed by the cygwin /bin/sh, and ; is a command separator on Linux-like
shells (but not on Windows cmd.exe). On a non-cygwin python, ";" will not
work.

In both cases you can get the opposite behavior by setting env['SHELL'] (in
one case to cmd.exe, in the other to /cygwin/bin/sh).

--
Gary
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://four.pairlist.net/pipermail/scons-users/attachments/20121025/556093ee/attachment.htm>


More information about the Scons-users mailing list