Berwyn <ber...@brush.co.nz> added the comment:

I agree with the patch, and it works fine:
    /bin/sh -c "gcc --version" gcc --version

But I begin to wonder whether bash has a bug since bash only seems to
observe the string, not the parameters after it.  For example:
    $ bash -c "./printargs.py abc" def ghi jkl
produces:
    ['./printargs.py', 'abc']

where printargs.py is:
    #!/usr/bin/python
    import sys
    print sys.argv

Just something to be aware of.

----------
nosy: +berwyn

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue6689>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to