[Python-bugs-list] [ python-Bugs-421250 ] os.execvp fails with empty argument list

noreply@sourceforge.net noreply@sourceforge.net
Thu, 03 May 2001 23:54:16 -0700


Bugs item #421250, was updated on 2001-05-03 23:54
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=421250&group_id=5470

Category: Python Library
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Michael Scharf (scharf)
Assigned to: Nobody/Anonymous (nobody)
Summary: os.execvp fails with empty argument list

Initial Comment:
This code fails with python 2.1 (it's ok with 1.5):
python -c 'import os;  os.execvp("ls",[])'



Traceback (most recent call last):
  File "<string>", line 1, in ?
  File "/Tools/Python-2.1/lib/python2.1/os.py", line
291, in execvp
    _execvpe(file, args)
  File "/Tools/Python-2.1/lib/python2.1/os.py", line
341, in _execvpe
    apply(func, (fullname,) + argrest)
ValueError: execv() arg 2 must not be empty


----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=421250&group_id=5470