[Python-ideas] Migration of /usr/bin/python to python3

Oleg Broytman phd at phdru.name
Wed Mar 11 21:32:45 CET 2015


On Wed, Mar 11, 2015 at 03:26:07PM -0500, Skip Montanaro <skip.montanaro at gmail.com> wrote:
> On Wed, Mar 11, 2015 at 3:22 PM, Oleg Broytman <phd at phdru.name> wrote:
> 
> >    That wouldn't work. Shebang line accepts one and only one parameter.
> > There are operating systems that allow more but they are exceptions.
> 
> If I understood correctly,
> /usr/bin/python would be started by the kernel, and it would be passed the
> -x flag.

   But it (the kernel) doesn't:

$ cat test2
#! /usr/local/bin/python -x -3
print "Ok"

$ ./test2
Unknown option: - 
usage: /usr/local/bin/python [option] ... [-c cmd | -m mod | file | -]
[arg] ...
Try `python -h' for more information.

Oleg.
-- 
     Oleg Broytman            http://phdru.name/            phd at phdru.name
           Programmers don't die, they just GOSUB without RETURN.


More information about the Python-ideas mailing list