]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
* docs/grub.texi (configfile): Explain environment variable
authorColin Watson <cjwatson@ubuntu.com>
Wed, 2 Jan 2013 09:29:48 +0000 (09:29 +0000)
committerColin Watson <cjwatson@ubuntu.com>
Wed, 2 Jan 2013 09:29:48 +0000 (09:29 +0000)
handling.
(source): New section.
Reported by: Arbiel Perlacremaz.  Fixes Savannah bug #35564.

ChangeLog
docs/grub.texi

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