nushell/crates/nu-command/src/system
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
..
complete.rs Document and critically review ShellError variants - Ep. 3 (#8340) 2023-03-06 18:33:09 +01:00
exec.rs Add --redirect-combine option to run-external (#8918) 2023-04-28 07:55:48 -05:00
mod.rs relocate debug commands (#8071) 2023-02-13 16:39:07 +00:00
nu_check.rs Only add the std lib files once (#8830) 2023-04-10 08:55:47 +12:00
ps.rs Add ppid example for ps (#8768) 2023-04-06 07:32:12 -05:00
registry_query.rs Use imported names in Command::run signatures (#7967) 2023-02-05 22:17:46 +01:00
run_external.rs Do not attempt to take control of terminal in non-interactive mode (#9693) 2023-07-17 16:32:29 -05:00
sys.rs remove unused dependencies (#9230) 2023-05-18 11:37:20 -05:00
which_.rs fixes which showing aliases as built-in nushell commands (#9580) 2023-07-08 10:48:42 +02:00