You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What's happening is it's seeing -0 as pid 0 not a signal and killing it. I'm not completely sure if nushell can catch this since - is reserved for short parameters and flags.
kill -0 is equivalent to kill 0. Nushell doesn't use kill -SIG syntax. You must specify the -s flag.
Edit: The fact that nushell implicitly converts kill -9 into kill -s 9 seems like a bug to me. There is no where in the documentation that talks about this.
Activity
[-]`kill -0` kills the nu process[/-][+]`kill -0` behaves oddly[/+]fdncred commentedon Apr 21, 2026
What's happening is it's seeing
-0as pid 0 not a signal and killing it. I'm not completely sure if nushell can catch this since-is reserved for short parameters and flags.quintuple-mallard commentedon Apr 21, 2026
Ah, I see. Hadn't realized -0 would be parsed as a number literal.
Juhan280 commentedon Apr 21, 2026
kill -0is equivalent tokill 0. Nushell doesn't usekill -SIGsyntax. You must specify the -s flag.Edit: The fact that nushell implicitly converts
kill -9intokill -s 9seems like a bug to me. There is no where in the documentation that talks about this.handle `kill -0` as signal shorthand and update PID handling (#18081)