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.
root_menu->Insert(
"bash", [](std::ostream &out)
{ system("/bin/bash"); });
The process exit after I issued 'bash' command.
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.