From df9ba1223d60a05e17071e5316ba95ba9d9a02fd Mon Sep 17 00:00:00 2001 From: Romain Bignon Date: Fri, 26 Aug 2016 14:38:50 +0200 Subject: [PATCH] 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 $ --- scripts/xon.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/xon.sh b/scripts/xon.sh index bf3224007..ecc0292c0 100755 --- a/scripts/xon.sh +++ b/scripts/xon.sh @@ -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 "$@"