Don't run the specified command as session leader?
clarkwang opened this issue · 1 comments
clarkwang commented
- There are interesting rules for session leaders.
- Run the command with
sh -c
?bash -c
? Allow users to specify the shell?- Some shells (like
Bash
?) is too smart and theyexec
the last command.- Bash can be fooled by
bash -c 'cmd ...; exit'
.
- Bash can be fooled by
- Some shells (like
clarkwang commented
Don't bother. Users can just sexpect spawn sh -c ...