Content
Data
License: GNU GPLv3 +
Version number: GNU Bash 5
Developer / owner: Free Software Foundation Inc.
Short description:
The manual page and help for the enable built-in Bash command. Enable is a tool for enabling and disabling built-in shell commands. Enables and disables built-in commands. By disabling a command, you can run a program with the same name as the built-in command without entering a path.
Man page output
man bash
[...]
enable [-a] [-dnps] [-f filename] [name ...]
Enable and disable builtin shell commands. Disabling a builtin allows a disk com-
mand 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. If -n is used, each name is disabled; otherwise, names are enabled. For
example, to use the test binary found via the PATH instead of the shell builtin
version, run ``enable -n test''. The -f option means to load the new builtin com-
mand name from shared object filename, on systems that support dynamic loading.
The -d option will delete a builtin previously loaded with -f. If no name argu-
ments are given, or if the -p option is supplied, a list of shell builtins is
printed. With no other option arguments, the list consists of all enabled shell
builtins. If -n is supplied, only disabled builtins are printed. If -a is sup-
plied, the list printed includes all builtins, with an indication of whether or not
each is enabled. If -s is supplied, the output is restricted to the POSIX special
builtins. 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.
[...]
Help output
enable --help
enable: enable [-a] [-dnps] [-f fájlnév] [név ...]
Parancsértelmező beépített parancsainak engedélyezése és tiltása.
Beépített parancsokat engedélyez és tilt. Egy parancs letiltásával az
elérési út beírása nélkül lehet beépített paranccsal megegyező nevű
programot futtatni.
Kapcsolók:
-a a beépített parancsok és azok állapotának listázása
-n minden NÉV tiltása vagy a tiltott parancsok listázása
-p a beépített parancsokat listázza újrahasználható formában
-s csak a Posix „special” beépített parancsokat listázza
Dinamikus betöltést szabályozó kapcsolók:
-f NÉV nevű beépített parancs betöltése a FÁJLNÉV megosztott
objektumfájlból
-d egy -f kapcsolóval betöltött parancs eltávolítása
Kapcsolók nélkül minden NÉV engedélyezésre kerül
A beépített parancs helyett a $PATH-ban található „test” használatához
használja az „enable -n test” parancsot.
Kilépési kód:
Sikerrel tér vissza, kivéve ha a NÉV nem egy beépített parancs, vagy
hiba történt.
Related Content
- 32 views