Package: bash Version: 3.0-5 Severity: normal The following log shows that "command -v" prints the name of a shell function even though the man page says that shell functions are supposed to be excluded from the search.
$ foo() { echo fjdskfjs ; } $ foo fjdskfjs $ command -v foo foo $ echo $? 0 $ command foo bash: foo: command not found $ echo $? 127 command [-pVv] command [arg ...] Run command with args suppressing the normal shell function lookup. Only builtin commands or commands found in the PATH are executed. [...] If either the -V or -v option is supplied, a description of com- mand is printed. The -v option causes a single word indicating the command or file name used to invoke command to be displayed; [...] If the -V or -v option is sup- plied, the exit status is 0 if command was found, and 1 if not. If neither option is supplied and an error occurred or command cannot be found, the exit status is 127. Otherwise, the exit status of the command builtin is the exit status of command. -- System Information: Debian Release: 3.1 APT prefers testing APT policy: (500, 'testing'), (50, 'unstable'), (1, 'experimental') Architecture: i386 (i686) Kernel: Linux 2.6.9 Locale: [EMAIL PROTECTED], [EMAIL PROTECTED] (charmap=ISO-8859-15) Versions of packages bash depends on: ii base-files 3.1.2 Debian base system miscellaneous f ii libc6 2.3.2.ds1-20 GNU C Library: Shared libraries an ii libncurses5 5.4-4 Shared libraries for terminal hand ii passwd 1:4.0.3-30.7 Change and administer password and -- no debconf information -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]