-
I am trying to add an internal command like 'bash', which should be used to open an system shell like '/bin/bash' from current terminal. But it seems not working as my expect when I write this kind of code below.
Thanks for your kindly help. |
Beta Was this translation helpful? Give feedback.
Answered by
daniele77
Sep 11, 2023
Replies: 1 comment
-
Are you really sure that the process exited? |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
daniele77
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Are you really sure that the process exited?
When you call
system("/bin/bash")
, you're getting a brand new bash prompt, which might seem like the process exited.Write "exit" to exit the new bash shell you just created using the bash command. It should return to the cli application.