Louis-Philippe Véronneau pushed to branch master at lintian / lintian


Commits:
fe6d9d2e by наб at 2024-11-02T20:33:04+01:00
command-with-path-in-maintainer-script: recommend command -v (standard 
built-in) instead of which (some program)

- - - - -


1 changed file:

- tags/c/command-with-path-in-maintainer-script.tag


Changes:

=====================================
tags/c/command-with-path-in-maintainer-script.tag
=====================================
@@ -8,7 +8,7 @@ Explanation: The indicated program run in a maintainer script 
has a prepended
  replacement version of a command for some local reason.
  .
  If the path is used to test a program for existence, please use <code>if
- which $program > /dev/null; then …</code>.
+ command -v $program > /dev/null; then …</code>.
  .
  If you intend to override this tag, please make sure that you are in
  control of the installation path of the according program and that



View it on GitLab: 
https://salsa.debian.org/lintian/lintian/-/commit/fe6d9d2ef1c1278533d1b357c19c81d0282e529c

-- 
View it on GitLab: 
https://salsa.debian.org/lintian/lintian/-/commit/fe6d9d2ef1c1278533d1b357c19c81d0282e529c
You're receiving this email because of your account on salsa.debian.org.


Reply via email to