Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 8 Feb 2005 11:04:56 GMT
From:      Bram Moolenaar <bram@vim.org>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   misc/77259: shell command "command -v cmd" doesn't work
Message-ID:  <200502081104.j18B4uXX074118@www.freebsd.org>
Resent-Message-ID: <200502081110.j18BALRM066141@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         77259
>Category:       misc
>Synopsis:       shell command "command -v cmd" doesn't work
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Feb 08 11:10:21 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     Bram Moolenaar
>Release:        5.3
>Organization:
Vim
>Environment:
FreeBSD masaka.moolenaar.net 5.3-RELEASE FreeBSD 5.3-RELEASE #11: Mon Jan 24 22:35:11 CET 2005     mool@masaka.moolenaar.net:/usr/src/sys/i386/compile/MASAKA  i386

>Description:
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.
>How-To-Repeat:
% /bin/sh
$ command -v ls
command: unknown option: -v
$
>Fix:
Should modify commandcmd() in /usr/src/bin/sh/eval.c.
>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200502081104.j18B4uXX074118>