mention that this does not break bash scoping

Signed-off-by: fbt <fbt@fleshless.org>
This commit is contained in:
2026-11-29 16:38:00 +00:00
parent 020f321818
commit 2c1e22dc12
+2 -1
View File
@@ -172,6 +172,8 @@ timeout =~ '^[0-9]+$' # regex match
Operators:
* `var name` — create the accessor function and return 0.
Normal BASH scoping pitfalls apply.
* `var name = value [value...]` — set the variable (it becomes a bash array).
* `var name += value [value...]` — append values.
* `var name _= value [value...]` — prepend values.
@@ -182,7 +184,6 @@ Operators:
* `var name is file` / `is dir` / `is directory` / `is fs_object` — check if
the value of name[0] points to a filesystem object.
* `var name u value` — exit 0 if `value` is one of the array's elements.
* `var name` — create the accessor function and exit.
* `name++` / `name--` — increment/decrement the first element.
* `var name -v other_name` — build the accessor for `other_name` instead of
`name` (so `name` acts on `other_name`).