Package: debianutils
Version: 2.8.4
Severity: wishlist

Many scripts already use the which program to find out whether or not
a given program foo is available on the PATH.  The contain code like
this:

   which foo >/dev/null 2>&1 && foo ...

A problem is that there is no guarantee that which itself is available
on the PATH; which is currently in /usr/bin/ and /usr can become
available as late as S:S45mountnfs.sh, so initscripts that run early
in the boot process cannot blindly assume that which will work.

To solve this problem I suggest that which be moved into /bin/.
The space impact of this change would be minimal.

$ ls -l /usr/bin/which
-rwxr-xr-x  1 root root 884 2004-07-13 01:29 /usr/bin/which


-- System Information:
Debian Release: 3.1
  APT prefers testing
  APT policy: (500, 'testing'), (50, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.10
Locale: [EMAIL PROTECTED], [EMAIL PROTECTED] (charmap=ISO-8859-15)

Versions of packages debianutils depends on:
ii  coreutils                   5.2.1-2      The GNU core utilities
ii  libc6                       2.3.2.ds1-20 GNU C Library: Shared libraries an

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to