it looks correct to me. argv[0] of the underlying os call execve is the
first argument given to the process that is being run, which is how you
can run a symlink to a program and have the binary image be FOO but
argv[0] be BAR.

So 'a' is passed in to execv, and then an additional redirection occurs where 
the #! line is evaluated, and the new image of /usr/bin/env is chosen, - man 
execve explains this. So the final thing executed is
[/usr/bin/env python b c d e] with a argv[0] of 'a', but then it exec's again 
to run python.

** Changed in: python-defaults (Ubuntu)
       Status: New => Invalid

-- 
python os.execv* bug
https://bugs.launchpad.net/bugs/174830
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to