Re: command -v in postinsts violating policy
Joey Hess@lists.debian-devel@Mon, 27 May 2002 01:13:12 -0400:
> command -v seems worse or equal to which.
>
Worse:
roy~$ command -v ls
alias ls='ls -hF --color=auto'
roy~$ type ls
ls is aliased to `ls -hF --color=auto'
roy~$ which ls
/bin/ls
Only which does exactly what it should..
roy~$ dpkg -S `which which`
debianutils: /usr/bin/which
roy~$ apt-cache show debianutils
Package: debianutils
Essential: yes
Priority: required
Section: base
[...]
Hmm... Try to remove that!
roy~# dpkg -P debianutils
dpkg: error processing debianutils (--purge):
This is an essential package - it should not be removed.
Errors were encountered while processing:
debianutils
So, what's wrong with which?
--
+-------- .''`. - -- ---+ + - -- --- ---- ----- ------+
| lintux : :' : lintux.cx | | Today's random quote: |
| at `. `~' debian.org | | command v any bette than caseems |
+--- -- - ` ---------------+ +------ ----- ---- --- -- - +
--
To UNSUBSCRIBE, email to debian-devel-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Reply to: