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 readonly built-in Bash command. The readonly command marks shell variables as read-only variables.
Man page output
man bash
[...]
readonly [-aAf] [-p] [name[=word] ...]
The given names are marked readonly; the values of these names may not be changed
by subsequent assignment. If the -f option is supplied, the functions correspond-
ing to the names are so marked. The -a option restricts the variables to indexed
arrays; the -A option restricts the variables to associative arrays. If both op-
tions are supplied, -A takes precedence. If no name arguments are given, or if the
-p option is supplied, a list of all readonly names is printed. The other options
may be used to restrict the output to a subset of the set of readonly names. The
-p option causes output to be displayed in a format that may be reused as input.
If a variable name is followed by =word, the value of the variable is set to word.
The return status is 0 unless an invalid option is encountered, one of the names is
not a valid shell variable name, or -f is supplied with a name that is not a func-
tion.
[...]
Help output
readonly --help
readonly: readonly [-aAf] [név[=érték] ...] vagy readonly -p
Parancsértelmező-változó változtathatatlannak jelölése.
Minden NÉV csak olvashatóvá állítása. A továbbiakban a NEVEK értéke
értékadással nem változtatható. Ha ÉRTÉK is van megadva, az írásvédelem
bekapcsolása előtt értékadás is történik.
Kapcsolók:
-a indexelt tömbváltozókra vonatkozik
-A asszociatív tömbváltozókra vonatkozik
-f függvényekre vonatkozik
-p az összes csak olvasható változó vagy függvény listázása
az -f kapcsoló megadásától függően
Egy „--” argumentum letiltja a további kapcsolóértelmezést.
Kilépési kód:
Sikerrel tér vissza, kivéve ha érvénytelen kapcsolót vagy NEVET kap.
Related Content
- 9 views