Re-post from 
<http://unix.stackexchange.com/questions/36752/why-are-parameters-to-bashs-command-and-type-optional>:

[T]hese commands print nothing and return exit code 0 if no parameters are 
provided. But [...] `help command` and `help type` both 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 ...]
    victor@victor:/home/victor/taclom/rails (master *$)
    $ help -s type
    type: type [-afptP] name [name ...]
    $ command
    $ echo $?
    0
    $ type
    $ echo $?
    0

Reply via email to