This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Anthony Sottile
Recipients Anthony Sottile, siming85
Date 2019-05-27.18:02:24
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1558980144.49.0.0267683942047.issue37066@roundup.psfhosted.org>
In-reply-to
Content
They're thin wrappers around the same C functions -- that's just how C works

it is also documented: https://docs.python.org/3/library/os.html#os.execvpe

> In either case, the arguments to the child process **should start with the name of the command being run**, but this is not enforced.

The pattern that I usually use is

```python
cmd = ('bash', '--init-file', 'foo')
os.execvp(cmd[0], cmd)  # never returns
```
History
Date User Action Args
2019-05-27 18:02:24Anthony Sottilesetrecipients: + Anthony Sottile, siming85
2019-05-27 18:02:24Anthony Sottilesetmessageid: <1558980144.49.0.0267683942047.issue37066@roundup.psfhosted.org>
2019-05-27 18:02:24Anthony Sottilelinkissue37066 messages
2019-05-27 18:02:24Anthony Sottilecreate