Anthony Sottile <asott...@umich.edu> 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 <rep...@bugs.python.org>
<https://bugs.python.org/issue37066>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to