Hi,
thanks for your feedback, I've now rewritten the paragraph in question
to simply read:
If you need to check for the existence of a command, you should use
something like
::
if command -v install-docs > /dev/null; then ...
You can use this function to search ``$PATH`` for a command
On Sat, 16 Nov 2019 18:58:12 +0100, Holger Levsen wrote:
> > Additionally see the discussion in #747320, where Jakub Wilk does point
> > out that maintainer scripts may assume /usr is mounted, so I'm not sure
> > about this.
> how is it relevant if /usr is mounted? if its not, both 'which' and '-v
hi Sean,
On Sun, Jul 22, 2018 at 03:54:05PM +0800, Sean Whitton wrote:
> Section 6.4 should perhaps recommend `command -v` not `which`, because
> Debian Policy 4.1.5.0 allows maintainer scripts to assume SUSv4, which
> requires support for `command -v`.
three comments:
a.) 'should perhaps' is a
Package: developers-reference
Version: 3.4.20
Severity: minor
Hello,
Section 6.4 should perhaps recommend `command -v` not `which`, because
Debian Policy 4.1.5.0 allows maintainer scripts to assume SUSv4, which
requires support for `command -v`.
Additionally see the discussion in #747320, where
4 matches
Mail list logo