Try and only kill real Orcas with --replace
Do not recognize as Orcas all process that has the "orca" substring in their program name, but only the ones that have "orca" as their program name -- e.g. don't do approximate matches.
This avoids killing random programs that just happen to have "orca" as a substring somewhere in their program name when using --replace
.
I'm not positive how portable the -x
pgrep switch is (tested on GNU/Linux, Debian Buster and Bullseye), but something along these lines should work.