Files
fish-shell/tests/checks/bg.fish
Johannes Altmanninger da411f6fa7 bg/fg/wait/disown/function: check for negative PID argument
While at it, extract a function.

Seems to have regressed in 4.0.0 (fc47d9fa1d (Use strongly typed
`Pid` for job control, 2024-11-11)).

Fixes #11929
2025-10-11 17:54:09 +02:00

9 lines
201 B
Fish

# RUN: %fish %s
bg 0
# CHECKERR: bg: '0' is not a valid process ID
bg -- -1
# CHECKERR: bg: '-1' is not a valid process ID
bg -- -(math 2 ^ 31)
# CHECKERR: bg: '-2147483648' is not a valid process ID