pub fn set_pre_exec_to_start_new_session(command: &mut Command) -> &mut CommandExpand description
Configures the process to start a new session, to prevent interactive shells from taking control of the terminal.
For more details: https://registerspill.thorstenball.com/p/how-to-lose-control-of-your-shell