Bash.Builtin.Enable (Bash v0.6.0)

Copy Markdown View Source

enable [-a] [-dnps] [-f filename] [name ...]

Enable and disable builtin shell commands. This allows you to use a disk command which has the same name as a shell builtin without specifying a full pathname.

Options: -a Print every builtin with an indication of whether it is enabled -n Disable the named builtins -p Print a list of builtins (default if no names given) -s Restrict output to POSIX special builtins

The -f and -d options for dynamic loading are not supported in this implementation.

Exit Status: Returns success unless NAME is not a shell builtin or an error occurs.

Reference: https://cgit.git.savannah.gnu.org/cgit/bash.git/plain/builtins/enable.def?h=bash-5.3