misc/77259: shell command "command -v cmd" doesn't work
bram at vim.org
Tue Feb 8 03:10:22 PST 2005
>Synopsis: shell command "command -v cmd" doesn't work
>Arrival-Date: Tue Feb 08 11:10:21 GMT 2005
>Originator: Bram Moolenaar
FreeBSD masaka.moolenaar.net 5.3-RELEASE FreeBSD 5.3-RELEASE #11: Mon Jan 24 22:35:11 CET 2005 mool at masaka.moolenaar.net:/usr/src/sys/i386/compile/MASAKA i386
In a "sh" shell the "command" command doesn't accept the "-v" argument. This breaks shell scripts that were written for a POSIX shell.
This is more lack of a feature than a real bug, but since the shell scripts work fine otherwise, fixing this problem will help people trying to run the POSIX test suite on FreeBSD.
$ command -v ls
command: unknown option: -v
Should modify commandcmd() in /usr/src/bin/sh/eval.c.
More information about the freebsd-bugs