[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

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



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 pretty weak statement ;p 
b.) whats SUSv4?
c.) I'm pondering to mention both but recommend "the winner" once I
    learned about SUSv4 - or do you think that's a bad idea?

> 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' can
fail...


-- 
cheers,
	Holger

-------------------------------------------------------------------------------
               holger@(debian|reproducible-builds|layer-acht).org
       PGP fingerprint: B8BF 5413 7B09 D35C F026 FE9D 091A B856 069A AA1C

Attachment: signature.asc
Description: PGP signature


Reply to: