xonsh/scripts/xon.sh
Romain Bignon df9ba1223d 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
$
2016-08-26 14:43:35 +02:00

10 lines
261 B
Bash
Executable file

#!/bin/sh
# set locale if it is totally undefined
if [ -z "${LC_ALL+x}" ] && [ -z "${LC_CTYPE+x}" ] && \
[ -z "${LANG+x}" ] && [ -z "${LANGUAGE+x}" ]; then
export LANG=C.UTF-8
fi
# run python
exec /usr/bin/env PYTHONUNBUFFERED=1 python3 -u -m xonsh "$@"