Bash – Why are parameters to Bash’s `command` and `type` optional

bash

Similar to Why are parameters to Bash's builtin optional?, these commands print nothing and return exit code 0 if no parameters are provided. But unlike builtin, their help output state that at least one parameter is mandatory. Is this a bug, a feature, or did I misunderstand something?

$ bash --version
GNU bash, version 4.2.10(1)-release (x86_64-pc-linux-gnu)
$ type -a command
command is a shell builtin
$ type -a type
type is a shell builtin
$ help -s command
command: command [-pVv] command [arg ...]
$ help -s type
type: type [-afptP] name [name ...]
$ command
$ echo $?
0
$ type
$ echo $?
0

Best Answer

POSIX thinks the command parameter is required. So it could be a bug.

POSIX 2008 command specification