Signed-off-by: fbt <fbt@fleshless.org>
This commit is contained in:
2026-11-29 16:19:18 +00:00
parent 5ae5a4920b
commit 020f321818
+3 -2
View File
@@ -178,8 +178,9 @@ Operators:
* `var name := value [value...]` — set only if the variable is unset or empty. * `var name := value [value...]` — set only if the variable is unset or empty.
* `var name == value` — exit 0 if the variable's first element equals `value`. * `var name == value` — exit 0 if the variable's first element equals `value`.
* `var name =~ regex` — exit 0 if the variable's first element matches `regex`. * `var name =~ regex` — exit 0 if the variable's first element matches `regex`.
* `var name is file` / `is dir` / `is directory` / `is fs_object` / `is empty` — * `var name is empty` — exit 0 if the variable is an empty string.
filesystem-style tests on the value. * `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 u value` — exit 0 if `value` is one of the array's elements.
* `var name` — create the accessor function and exit. * `var name` — create the accessor function and exit.
* `name++` / `name--` — increment/decrement the first element. * `name++` / `name--` — increment/decrement the first element.