From e55f473ea9101fe137a046d7a9a561c82a9fbf1d Mon Sep 17 00:00:00 2001 From: Adriaan de Groot Date: Tue, 21 Dec 2021 15:34:48 +0100 Subject: Help: clarify that list(APPEND) on a non-existent list creates it This is hinted-at in the introduction, which mentions creating a new variable value in the current scope, but let's make it explicit. Fixes: #22910 --- Help/command/list.rst | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Help/command/list.rst b/Help/command/list.rst index 9b49cb4..46285cc 100644 --- a/Help/command/list.rst +++ b/Help/command/list.rst @@ -128,7 +128,9 @@ Modification list(APPEND [ ...]) -Appends elements to the list. +Appends elements to the list. If no variable named ```` exists in the +current scope its value is treated as empty and the elements are appended to +that empty list. .. _FILTER: -- cgit v0.12