]> www.infradead.org Git - users/dwmw2/vpnc-scripts.git/commit
Use `command -v` instead of `which`
authorVille Skyttä <ville.skytta@iki.fi>
Fri, 12 Nov 2021 21:47:56 +0000 (23:47 +0200)
committerVille Skyttä <ville.skytta@iki.fi>
Fri, 12 Nov 2021 22:07:06 +0000 (00:07 +0200)
commit32f057d08a0b28d218cd5c51a31a8e6502c48854
treefa7209290c65004464a009652c2925e323b5c658
parentb749c2cadc2f32e2efffa69302861f9a7d4a4e5f
Use `command -v` instead of `which`

`which` is not standard and might not be installed, whereas `command -v`
is in POSIX and its predecessor specs at least since 1994,
specified to produce no output when the arg command is not found.
https://pubs.opengroup.org/onlinepubs/7908799/xcu/command.html

`which` is also deprecated in Debian's debianutils 5.0+ and emits a
warning when used. At the moment, 5.0+ is only in Debian unstable, and
there is no other package in it providing `which`.
https://salsa.debian.org/debian/debianutils/-/commit/3a8dd10b4502f7bae8fc6973c13ce23fc9da7efb
tests/common.sh
tests/ns.sh
vpnc-script
vpnc-script-ptrtd
vpnc-script-sshd