[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



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

`command' is a shell builtin (at least for dash, bash, zsh).

(Interestingly `which' seems to be a shell builtin in zsh; but not in
bash or dash where /usr/bin/which is used.)

Cheers,
gregor

-- 
 .''`.  https://info.comodo.priv.at -- Debian Developer https://www.debian.org
 : :' : OpenPGP fingerprint D1E1 316E 93A7 60A8 104D  85FA BB3A 6801 8649 AA06
 `. `'  Member VIBE!AT & SPI Inc. -- Supporter Free Software Foundation Europe
   `-   NP: Donovan: Remember the Alamo

Attachment: signature.asc
Description: Digital Signature


Reply to: