TL;DR: the non-standardized (but common) which is considered deprecated by some distributions, and command -v provides the same functionality while being POSIX-compliant.. consider switching to it.
the test-scripts tests/compare.sh and tests/compareIgnoreNew.sh use the which utility to check for an installation of node (and use various fallbacks).
Now which is a nice tool, but it is not standardized (e.g. by POSIX). otoh POSIX does mandate command -v which has about the same functionality.
For this reason some distributions (e.g. Debian) have started to fade out which (in favour of command -v). Starting with the next Debian release (bookworm) this utility might be gone (from the standard tools), and at the very least output a big fat warning (as it already does in current Debian/testing).
already the Debian CI-tests have started failing because of this (as by-default they consider any output on stderr a failure; it's easy enough to disable this behvaiour of the CI, but then: it's just as easy to fix the underlying problem)
TL;DR: the non-standardized (but common)
which
is considered deprecated by some distributions, andcommand -v
provides the same functionality while being POSIX-compliant.. consider switching to it.the test-scripts tests/compare.sh and tests/compareIgnoreNew.sh use the
which
utility to check for an installation ofnode
(and use various fallbacks).Now
which
is a nice tool, but it is not standardized (e.g. by POSIX). otoh POSIX does mandatecommand -v
which has about the same functionality. For this reason some distributions (e.g. Debian) have started to fade outwhich
(in favour ofcommand -v
). Starting with the next Debian release (bookworm
) this utility might be gone (from the standard tools), and at the very least output a big fat warning (as it already does in current Debian/testing).already the Debian CI-tests have started failing because of this (as by-default they consider any output on stderr a failure; it's easy enough to disable this behvaiour of the CI, but then: it's just as easy to fix the underlying problem)