From 8a6585b0786e84dacd4d9919c5ecb2175ba3b914 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Mart=C3=AD?= Date: Sun, 29 Sep 2024 10:34:12 +0200 Subject: [PATCH] README: clarify caveat for `declare` Closes #858. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 151bec08..5f5115e7 100644 --- a/README.md +++ b/README.md @@ -63,7 +63,7 @@ $ echo '$((foo); (bar))' | shfmt 1:1: reached ) without matching $(( with )) ``` -* Some builtins like `export` and `let` are parsed as keywords. +* `export`, `let`, and `declare` are parsed as keywords. This allows statically building their syntax tree, as opposed to keeping the arguments as a slice of words. It is also required to support `declare foo=(bar)`.