"enable name" when name is not a shell builtin attempts to load it from a shared object

This commit is contained in:
Chet Ramey
2021-08-02 12:07:40 -04:00
parent 6c84d09c19
commit 0edd0a9183
9 changed files with 9275 additions and 9197 deletions
+5
View File
@@ -4532,6 +4532,11 @@ The @option{-s} option restricts @code{enable} to the @sc{posix} special
builtins. If @option{-s} is used with @option{-f}, the new builtin becomes
a special builtin (@pxref{Special Builtins}).
If no options are supplied and a @var{name} is not a shell builtin,
@code{enable} will attempt to load @var{name} from a shared object named
@var{name}, as if the command were
@samp{enable -f @var{name} @var{name}}.
The return status is zero unless a @var{name} is not a shell builtin
or there is an error loading a new builtin from a shared object.