Mercurial > hg > graal-compiler
changeset 13950:35783e78eaef
mx.run: shell-escape arguments when printing them in verbose mode
author | Gilles Duboscq <duboscq@ssw.jku.at> |
---|---|
date | Thu, 13 Feb 2014 17:07:36 +0100 |
parents | f694daada5bf |
children | 392b6ac8da36 |
files | mxtool/mx.py |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mxtool/mx.py Thu Feb 13 17:03:20 2014 +0100 +++ b/mxtool/mx.py Thu Feb 13 17:07:36 2014 +0100 @@ -38,6 +38,7 @@ import socket import xml.parsers.expat import shutil, re, xml.dom.minidom +import pipes from collections import Callable from threading import Thread from argparse import ArgumentParser, REMAINDER @@ -1131,7 +1132,7 @@ log('Environment variables:') for key in sorted(env.keys()): log(' ' + key + '=' + env[key]) - log(' '.join(args)) + log(' '.join(map(pipes.quote, args))) if timeout is None and _opts.ptimeout != 0: timeout = _opts.ptimeout