GNU which (default in GNU/Linux systems) is very verbose when it doesn't find a command, printing to STDERR something along those lines when a command is not found:
which: no growlnotify in (/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl)
which: no terminal-notifier in (/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl)
This isn't a problem in macOS, since the default which in macOS doesn't print to STDERR.
GNU
which
(default in GNU/Linux systems) is very verbose when it doesn't find a command, printing toSTDERR
something along those lines when a command is not found:This isn't a problem in macOS, since the default which in macOS doesn't print to
STDERR
.