Public bug reported:

Binary package hint: python

Two python executables, main and prog:

>main:
>#!/usr/bin/env python
>#coding=utf8
>
>import os
>os.execvp('./prog', ['a','b','c','d','e'])

>prog:
>#!/usr/bin/env python
>#coding=utf8
>
>import sys
>print sys.argv

./main gives output:
>['./prog', 'b', 'c', 'd', 'e']

although
>['./prog', 'a', 'b', 'c', 'd', 'e']
is expected

** Affects: python-defaults (Ubuntu)
     Importance: Undecided
         Status: New

-- 
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