This commit is contained in:
Thomas Nagy 2011-09-16 00:30:25 +02:00
parent d939b02498
commit bde0ca40d1
1 changed files with 1 additions and 1 deletions

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