correctly preserve parameters

In case there are arguments containing spaces, there were splited. For
example:

$ xonsh -c 'echo 123'
['/home/rom1/python/xonsh/__main__.py', '-c', 'echo', '123']

$

With this patch:

$ xonsh -c 'echo 123'
['/home/rom1/python/xonsh/__main__.py', '-c', 'echo 123']
123
$
This commit is contained in:
Romain Bignon 2016-08-26 14:38:50 +02:00
parent aadea0fae5
commit df9ba1223d

View file

@ -7,4 +7,4 @@ if [ -z "${LC_ALL+x}" ] && [ -z "${LC_CTYPE+x}" ] && \
fi
# run python
exec /usr/bin/env PYTHONUNBUFFERED=1 python3 -u -m xonsh $@
exec /usr/bin/env PYTHONUNBUFFERED=1 python3 -u -m xonsh "$@"