2
0
mirror of https://gitlab.com/ita1024/waf.git synced 2024-11-25 11:19:52 +01:00
This commit is contained in:
Thomas Nagy 2011-09-16 00:30:25 +02:00
parent d939b02498
commit bde0ca40d1

View File

@ -875,7 +875,7 @@ def exec_response_command(self, cmd, **kw):
program = cmd[0] #unquoted program name, otherwise exec_command will fail
cmd = [self.quote_response_command(x) for x in cmd]
(fd, tmp) = tempfile.mkstemp()
os.write(fd, ' '.join(i.replace('\\', '\\\\') for i in cmd[1:]).encode())
os.write(fd, '\r\n'.join(i.replace('\\', '\\\\') for i in cmd[1:]).encode())
os.close(fd)
cmd = [program, '@' + tmp]
# no return here, that's on purpose