Anthony Sottile <[email protected]> added the comment:
You want:
os.execl('/bin/bash', 'bash', '--init-file', ...)
argv[0] is supposed to be the program name, your example puts `--init-file` as
the program name
----------
nosy: +Anthony Sottile
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue37066>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com