[Python-ideas] Migration of /usr/bin/python to python3
Ryan Gonzalez
rymg19 at gmail.com
Wed Mar 11 21:50:31 CET 2015
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.
http://mail-index.netbsd.org/netbsd-users/2008/11/09/msg002388.html
On Wed, Mar 11, 2015 at 3:13 PM, Skip Montanaro <skip.montanaro at gmail.com>
wrote:
>
> On Wed, Mar 11, 2015 at 3:10 PM, Ryan Gonzalez <rymg19 at gmail.com> wrote:
>
>> What about using */usr/bin/env*? That wouldn't work; on my Linux system,
>> */usr/bin/env* doesn't like any command like arguments.
>
>
> Not sure what planet your Linux system is from, but I use
>
> #!/usr/bin/env python
>
> in all my scripts. It likes the argument ("python" in this case) just
> fine...
>
> Skip
>
>
--
Ryan
[ERROR]: Your autotools build scripts are 200 lines longer than your
program. Something’s wrong.
http://kirbyfan64.github.io/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20150311/4cb69adc/attachment.html>
More information about the Python-ideas
mailing list