I'm on Ubuntu 22.04.3 LTS, (Jammy Jellyfish).
$ ps -p 1635
PID TTY TIME CMD
$ kill -0 1635 ; echo $?
0
$ type kill
kill is a shell builtin
$ echo $BASH_VERSION
5.1.16(1)-release
$ mount|grep proc
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
I'd expect kill -0 to return bash: kill: (1635) - No such process.
Update 1
ps -eLf | awk 'NR == 1 || /1635/'
PID PPID LWP C NLWP STIME TTY TIME CMD
1632 1091 1635 0 9 13:07 ? 00:00:00 /usr/libexec/evolution-calendar-factory
hidepidwhen mountingprocfs?type kill-killis probably going to be the built-inkill, but might be a function or alias, andwhichwon't help with any of those cases.ubuntu:22.04Dockerhub Docker container.psand yourkillacted at different moments, a process with PID 1635 may have appeared in between.psdoesn't show those by default. See whatps -eLf | awk 'NR == 1 || /1635/'shows you? (In case you're wondering, that AWK is pretty much the same asgrep 1635, except it also prints the first record(line), i.e. the header.)