On 4/18/12 9:18 AM, Victor Engmark wrote: > (Re-posted from Stack Overflow > <http://unix.stackexchange.com/questions/36751/why-are-parameters-to-bashs-builtin-optional>) > > Running simply `builtin` prints nothing and returns exit code 0. This is in > accordance with `help builtin`, which shows all parameters as optional. But > why isn't this no-op an error? Is there a use case for this? A more useful > result would be an error code or, even better, listing the currently > available builtins.
What's the use case for having it be an error? I can see printing a list of builtins, though `enable' already does that. -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, ITS, CWRU c...@case.edu http://cnswww.cns.cwru.edu/~chet/