2
0
Fork 0
mirror of https://github.com/nushell/nushell synced 2025-02-13 12:43:48 +00:00
nushell/crates/nu-system
Ian Manske a5a79a7d95
Do not attempt to take control of terminal in non-interactive mode ()
# Description
Fixes a regression from  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 :

>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
..
examples Reduce again the number of match calls () 2023-01-24 12:23:42 +01:00
src Do not attempt to take control of terminal in non-interactive mode () 2023-07-17 16:32:29 -05:00
.gitignore Add nu-system and rewrite ps command () 2022-01-14 17:20:53 +11:00
Cargo.lock Bump to 0.70 () 2022-10-19 07:13:36 +13:00
Cargo.toml Use is-terminal crate for now () 2023-07-12 18:15:54 +02:00
LICENSE Nu glob () 2022-03-13 11:30:27 -07:00