Table of Contents

Bash - Enable, disable or print Builtin command

About

Enable, disable and print builtin shell commands.

Syntax

enable [-adnps] [-f filename] [name ...]

Return value

The return value is 0 unless a name is not a shell builtin or there is an error loading a new builtin from a shared object.

Management

Enable

For example, to use the test binary found via the PATH instead of the shell builtin version, run enable -n test.

Disable

Disabling a builtin allows a disk command which has the same name as a shell builtin to be executed without specifying a full pathname, even though the shell normally searches for builtins before disk commands.

List

If no name arguments are given, or if the -p option is supplied, a list of shell builtins is printed.