Why Sponsor Oil? | source | all docs for version 0.13.1 | 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.Dynamic
What shell uses
setref
: Dynamic
with nameref
(no shopt
)
nameref
feature: declare -n
.scope_e.LocalOrGlobal
In Oil, it does one of three things:
In shell, it does these things:
scope_e.LocalOnly
For loop variables, etc. Mutates exactly one scope!
LocalOrGlobal
For Reading Variables, and for setvar
Constructs 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 .cell
TZ
test in printf
. I think this could just look in the
environment itself? Do getenv()
?