From 42fe7d215092dd1251a9ec298ca83a6ad9e59b86 Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Mon, 13 Jun 2016 09:55:17 -0400 Subject: Help: clarify PARENT_SCOPE behavior Fixes #15093. --- Help/command/set.rst | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Help/command/set.rst b/Help/command/set.rst index d04b880..b24ebef 100644 --- a/Help/command/set.rst +++ b/Help/command/set.rst @@ -25,7 +25,9 @@ If the ``PARENT_SCOPE`` option is given the variable will be set in the scope above the current scope. Each new directory or function creates a new scope. This command will set the value of a variable into the parent directory or calling function (whichever is applicable -to the case at hand). +to the case at hand). The previous state of the variable's value stays the +same in the current scope (e.g., if it was undefined before, it is still +undefined and if it had a value, it is still that value). Set Cache Entry ^^^^^^^^^^^^^^^ -- cgit v0.12