From 2c1e22dc120eb17705f12c96c40433b72fbf5b5c Mon Sep 17 00:00:00 2001 From: fbt Date: Sun, 29 Nov 2026 16:38:00 +0000 Subject: [PATCH] mention that this does not break bash scoping Signed-off-by: fbt --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 87d798c..24d9603 100644 --- a/README.md +++ b/README.md @@ -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`).