github.com/lmorg/murex@v0.0.0-20240217211045-e081c89cd4ef/gen/user-guide/reserved_vars_doc.yaml (about) 1 - DocumentID: reserved-vars 2 Title: >- 3 Reserved Variables 4 CategoryID: user-guide 5 Summary: >- 6 Special variables reserved by Murex 7 Description: |- 8 In Murex, there are five different classes of variables: 9 1. Local variables (scope limited to a function et al) 10 2. Module variables (scoped to a module) 11 3. Global variables (available to every function within Murex but not shared 12 with processes outside of the Murex's runtime) 13 4. Environmental variables (available to every function and process -- internal 14 and external to Murex) 15 5. Reserved variables 16 17 Reserved variables are data that are available to any code running within 18 Murex and exposed as a variable. 19 20 Because reserved variables are dynamic properties of the runtime environment, 21 they can only be queried and not set: 22 23 ``` 24 ยป set SELF="foobar" 25 Error in `set` (0,1): cannot set a reserved variable: SELF 26 ``` 27 Synonyms: 28 - reserved-vars 29 - reserved 30 - reserved-variables 31 - special-vars 32 - special-variables 33 Related: 34 - self 35 - argv 36 - shell 37 - murex_argv 38 - hostname 39 - numeric 40 - columns 41 - set 42 - global 43 - export 44 - scoping 45 - pipeline 46 - modules 47