This documents the new ‘-g’ and ‘-u’ options added to the
command to allow exporting variables to upper scopes and
cancelling export (un-exporting) the variables.
---
 docs/grub.texi | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/docs/grub.texi b/docs/grub.texi
index 34b3484dc..95ef247c7 100644
--- a/docs/grub.texi
+++ b/docs/grub.texi
@@ -6981,9 +6981,17 @@ result as sequence of GRUB commands.
 @node export
 @subsection export
 -@deffn Command export envvar
+@deffn Command export [@option{--global}|@option{--unexport}] envvar...
Export the environment variable @var{envvar}. Exported variables are visible
 to subsidiary configuration files loaded using @command{configfile}.
+
+If the (@option{-u}, @option{--unexport}) is used, the variable is made again +into a local variable. This is reverse operation of the @command{export} without
+any options.
+
+The (@option{-g}, @option{--global}) causes the variable to become exported
+not only to newly created scopes, but also to the original scope and all its
+parent scopes when the execution leaves the current scope.
 @end deffn
  -- 2.45.3


_______________________________________________
Grub-devel mailing list
Grub-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/grub-devel

Reply via email to