Jason Vas Dias <jason.vas.d...@gmail.com> added the comment: final python wrapper script :
$ cat python #!/bin/bash ME=$0 ME=${ME##*/} VERSION=${ME#python} VERSION=${VERSION:-2.7.1} ARCH=`uname -m` CMD='' case $ARCH in i686) CMD="/usr/bin/32/${ME}" ;; *) CMD="/usr/bin/python${VERSION}.bin" ;; esac for((a=1;a<=$#;a++));do CMD="${CMD} '$(eval 'echo -e "$'$a'"' | sed 's/['"'"']/'"'"'"'"'"'"'"'"'/g')' " ;done eval "exec $CMD" now handles: $ ./python -c 'import os import sys import commands print commands.getstatus('"'"'/.'"'"') ' drwxr-xr-x. 25 root root 4096 Apr 20 15:28 /. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue11946> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com