- Article pages now have a discussion option at the bottom (moderated/captcha, but no registration needed) - recently upgraded to a newer Dokuwiki version, please report problems

The readonly builtin command

Synopsis

readonly [-p] [-a] [-A] [-f] [NAME[=VALUE] ...]

Description

The readonly builtin command is used to mark variables or functions as read-only, which means unchangable. Tis implies that it can't be unset anymore.

Options

Option Description
-a refer to normal arrays
-A refer to associative arrays
-f refer to functions
-p print all read-only variables or functions, -a, -A and -f can be used to filter. The output is reusable as input

An argument of -- disables further option processing.

Return status

Status Reason
0 no error
!=0 invalid option
!=0 invalid combination of options
!=0 a given NAME is invalid

Examples

Portability considerations

  • in POSIX®, only the -p option is specified

See also

Discussion

Enter your comment
 
commands/builtin/readonly.txt · Last modified: 2011/01/04 06:59 by thebonsai
GNU Free Documentation License 1.3
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0