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

Skip Montanaro skip.montanaro at gmail.com
Thu Mar 12 01:58:55 CET 2015


On Mar 11, 2015 3:50 PM, "Ryan Gonzalez" <rymg19 at gmail.com> wrote:
>
> No; this won't work:
>
> #!/usr/bin/env python -x -3
>
> As Oleg said, anything in the hashbang can only be passed one argument.
It's not the kernel that invokes that; it's the shell.

What is to prevent Python itself from going back and reading that line?
Will the shell barf completely if there are two args? Or will it exec
.../env python?

Skip
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20150311/8bb1d180/attachment.html>


More information about the Python-ideas mailing list