nushell/crates/nu-system/src
Ian Manske a5a79a7d95
Do not attempt to take control of terminal in non-interactive mode (#9693)
# Description
Fixes a regression from #9681 where nushell will attempt to place itself
into the background or take control of the terminal even in
non-interactive mode.

Using the same
[reference](https://www.gnu.org/software/libc/manual/html_node/Initializing-the-Shell.html)
from #6584:

>A subshell that runs *interactively* has to ensure that it has been
placed in the foreground...

>A subshell that runs *non-interactively* cannot and should not support
job control.

`fish`
[code](54fa1ad6ec/src/reader.cpp (L4862))
also seems to follow this.

This *partially* fixes
[9026](https://github.com/nushell/nushell/issues/9026). That is, nushell
will no longer set the foreground process group in non-interactive mode.
2023-07-17 16:32:29 -05:00
..
foreground.rs Do not attempt to take control of terminal in non-interactive mode (#9693) 2023-07-17 16:32:29 -05:00
lib.rs Foreground process group management, again (#6584) 2022-09-29 13:37:48 -05:00
linux.rs Add ppid to ps command (#8750) 2023-04-05 13:12:01 -05:00
macos.rs update most dependencies except where deeper code changes are needed (#9296) 2023-05-26 10:32:48 -05:00
windows.rs revert: move to ahash (#9464) 2023-06-18 15:27:57 +12:00