dcavalca / rpms / grub2

Forked from rpms/grub2 3 years ago
Clone

Blame SOURCES/0076-docs-grub.texi-configfile-Explain-environment-variab.patch

f96e0b
From ea42a4554351f4a695bf24f208ec0ad769f05e5c Mon Sep 17 00:00:00 2001
f96e0b
From: Colin Watson <cjwatson@ubuntu.com>
f96e0b
Date: Wed, 2 Jan 2013 09:29:48 +0000
f96e0b
Subject: [PATCH 076/482] * docs/grub.texi (configfile): Explain environment
f96e0b
 variable handling. (source): New section. Reported by: Arbiel Perlacremaz. 
f96e0b
 Fixes Savannah bug #35564.
f96e0b
f96e0b
---
f96e0b
 ChangeLog      |  7 +++++++
f96e0b
 docs/grub.texi | 18 +++++++++++++++++-
f96e0b
 2 files changed, 24 insertions(+), 1 deletion(-)
f96e0b
f96e0b
diff --git a/ChangeLog b/ChangeLog
f96e0b
index 8723bfa..68920bf 100644
f96e0b
--- a/ChangeLog
f96e0b
+++ b/ChangeLog
f96e0b
@@ -1,3 +1,10 @@
f96e0b
+2013-01-02  Colin Watson  <cjwatson@ubuntu.com>
f96e0b
+
f96e0b
+	* docs/grub.texi (configfile): Explain environment variable
f96e0b
+	handling.
f96e0b
+	(source): New section.
f96e0b
+	Reported by: Arbiel Perlacremaz.  Fixes Savannah bug #35564.
f96e0b
+
f96e0b
 2012-12-31  Colin Watson  <cjwatson@ubuntu.com>
f96e0b
 
f96e0b
 	Remove several trivially-unnecessary uses of nested functions.
f96e0b
diff --git a/docs/grub.texi b/docs/grub.texi
f96e0b
index 39d9614..e9af377 100644
f96e0b
--- a/docs/grub.texi
f96e0b
+++ b/docs/grub.texi
f96e0b
@@ -3303,6 +3303,7 @@ you forget a command, you can run the command @command{help}
f96e0b
 * search::                      Search devices by file, label, or UUID
f96e0b
 * sendkey::                     Emulate keystrokes
f96e0b
 * set::                         Set an environment variable
f96e0b
+* source::                      Read a configuration file in same context
f96e0b
 * true::                        Do nothing, successfully
f96e0b
 * unset::                       Unset an environment variable
f96e0b
 * uppermem::                    Set the upper memory size
f96e0b
@@ -3429,7 +3430,9 @@ If they are completely identical, nothing will be printed.
f96e0b
 
f96e0b
 @deffn Command configfile file
f96e0b
 Load @var{file} as a configuration file.  If @var{file} defines any menu
f96e0b
-entries, then show a menu containing them immediately.
f96e0b
+entries, then show a menu containing them immediately.  Any environment
f96e0b
+variable changes made by the commands in @var{file} will not be preserved
f96e0b
+after @command{configfile} returns.
f96e0b
 @end deffn
f96e0b
 
f96e0b
 
f96e0b
@@ -4069,6 +4072,19 @@ arguments, print all environment variables with their values.
f96e0b
 @end deffn
f96e0b
 
f96e0b
 
f96e0b
+@node source
f96e0b
+@subsection source
f96e0b
+
f96e0b
+@deffn Command source file
f96e0b
+Read @var{file} as a configuration file, as if its contents had been
f96e0b
+incorporated directly into the sourcing file.  Unlike @command{configfile}
f96e0b
+(@pxref{configfile}), this executes the contents of @var{file} without
f96e0b
+changing context: any environment variable changes made by the commands in
f96e0b
+@var{file} will be preserved after @command{source} returns, and the menu
f96e0b
+will not be shown immediately.
f96e0b
+@end deffn
f96e0b
+
f96e0b
+
f96e0b
 @node true
f96e0b
 @subsection true
f96e0b
 
f96e0b
-- 
f96e0b
1.8.2.1
f96e0b