source | all docs for version 0.9.9 | all versions | oilshell.org
Warning: Work in progress! Leave feedback on Zulip or Github if you'd like this doc to be updated.
NOTE: Most important content has been moved to the variables doc.
This doc has details for advanced users.
Cells are locations for variables.
Named after enums.
scope_e.DynamicWhat shell uses
setref: Dynamic with nameref (no shopt)
nameref feature: declare -n.scope_e.LocalOrGlobalIn Oil, it does one of three things:
In shell, it does these things:
scope_e.LocalOnlyFor loop variables, etc. Mutates exactly one scope!
LocalOrGlobal For Reading Variables, and for setvarConstructs That Retrieve Cells:
The other ones deal with values. These deal with cells.
GetCell() and GetAllCells()
declare -p to print variables${x@a} to print flagspp .cellTZ test in printf. I think this could just look in the
environment itself? Do getenv()?