clarkwang/sexpect

Don't run the specified command as session leader?

clarkwang opened this issue · 1 comments

  • 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 they exec the last command.
      • Bash can be fooled by bash -c 'cmd ...; exit'.

Don't bother. Users can just sexpect spawn sh -c ...