mirror of
https://github.com/nushell/nushell.git
synced 2024-11-23 08:53:29 +01:00
4af0a6a3fa
* Revert "Revert "Try again: in unix like system, set foreground process while running external command (#6273)" (#6542)"
This reverts commit 2bb367f570
.
* Make foreground job control hopefully work correctly
These changes are mostly inspired by the glibc manual.
* Fix typo in external command description
* Only restore tty control to shell when no fg procs are left; reuse pgrp
* Rework terminal acquirement code to be like fish
Co-authored-by: Darren Schroeder <343840+fdncred@users.noreply.github.com>
36 lines
1.1 KiB
TOML
36 lines
1.1 KiB
TOML
[package]
|
|
authors = ["The Nushell Project Developers", "procs creators"]
|
|
description = "Nushell system querying"
|
|
repository = "https://github.com/nushell/nushell/tree/main/crates/nu-system"
|
|
name = "nu-system"
|
|
version = "0.69.2"
|
|
edition = "2021"
|
|
license = "MIT"
|
|
|
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
|
|
|
[[bin]]
|
|
name = "ps"
|
|
path = "src/main.rs"
|
|
|
|
[dependencies]
|
|
libc = "0.2"
|
|
|
|
[target.'cfg(target_family = "unix")'.dependencies]
|
|
nix = "0.24"
|
|
atty = "0.2"
|
|
|
|
[target.'cfg(any(target_os = "linux", target_os = "android"))'.dependencies]
|
|
procfs = "0.14.0"
|
|
|
|
[target.'cfg(target_os = "macos")'.dependencies]
|
|
libproc = "0.12.0"
|
|
errno = "0.2"
|
|
mach2 = "0.4"
|
|
|
|
[target.'cfg(target_os = "windows")'.dependencies]
|
|
winapi = { version = "0.3.9", features = ["tlhelp32", "fileapi", "handleapi", "ifdef", "ioapiset", "minwindef", "pdh", "psapi", "synchapi", "sysinfoapi", "winbase", "winerror", "winioctl", "winnt", "oleauto", "wbemcli", "rpcdce", "combaseapi", "objidl", "powerbase", "netioapi", "lmcons", "lmaccess", "lmapibuf", "memoryapi", "shellapi", "std", "securitybaseapi"] }
|
|
chrono = "0.4.21"
|
|
ntapi = "0.3"
|
|
once_cell = "1.0"
|