Bug#904246: developers-reference: section 6.4 should recommend command -v, not which

2019-11-18 Thread Holger Levsen
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

Bug#904246: developers-reference: section 6.4 should recommend command -v, not which

2019-11-16 Thread gregor herrmann
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

Bug#904246: developers-reference: section 6.4 should recommend command -v, not which

2019-11-16 Thread Holger Levsen
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

Bug#904246: developers-reference: section 6.4 should recommend command -v, not which

2018-07-22 Thread Sean Whitton
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