Skip to content

How to add internal command used to enter system shell #212

@marklion

Description

@marklion

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.

Thanks for your kindly help.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions