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

Bug#998802: the which warning is bogus



> Purging configuration files for libdebuginfod-common (0.185-2) ...
> /usr/bin/which: this version of `which' is deprecated; use `command -v' in scripts instead.

That's bad advice, for a number of reasons.
Of these, maintscripts checking for ucf is somewhat likely to run into
`command -v` giving a wrong answer for non-executable files in $PATH.
This one can happen eg. after a bad backup restore (rsync w/o -x),
which is a scenario when the admin is likely to purge many packages while
trying to recover.

Unlike `command -v`, `which` handles that correctly.

The bad advice has been overruled by the CTTE, but debianutils maintainer
hasn't complied yet.


Meow!
-- 
⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ in the beginning was the boot and root floppies and they were good.
⢿⡄⠘⠷⠚⠋⠀                                       -- <willmore> on #linux-sunxi
⠈⠳⣄⠀⠀⠀⠀


Reply to: