* docs/grub.texi (Commands): Document postition parameters
authorAndrey Borzenkov <arvidjaar@gmail.com>
Sat, 13 Jul 2013 14:48:34 +0000 (18:48 +0400)
committerAndrey Borzenkov <arvidjaar@gmail.com>
Sat, 13 Jul 2013 14:48:34 +0000 (18:48 +0400)
for menuentry command.

ChangeLog
docs/grub.texi

index ad6b5e7..45c1df1 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2013-07-13  Andrey Borzenkov <arvidjaar@gmail.com>
+
+       * docs/grub.texi (Commands): Document postition parameters
+       for menuentry command.
+
 2013-07-13  Andrey Borzenkov <arvidjaar@gmail.com>
 
        * util/grub-mknetdir.in: Remove stray line from help output.
index 9dcfa2d..1e53364 100644 (file)
@@ -3264,7 +3264,7 @@ These commands can only be used in the menu:
 @deffn Command menuentry @var{title} @
  [@option{--class=class} @dots{}] [@option{--users=users}] @
  [@option{--unrestricted}] [@option{--hotkey=key}] [@option{--id=id}] @
- @{ @var{command}; @dots{} @}
[@var{arg} @dots{}] @{ @var{command}; @dots{} @}
 This defines a GRUB menu entry named @var{title}.  When this entry is
 selected from the menu, GRUB will set the @var{chosen} environment variable
 to value of @option{--id} if @option{--id} is given, execute the list of
@@ -3288,6 +3288,9 @@ The @option{--hotkey} option associates a hotkey with a menu entry.
 The @option{--id} may be used to associate unique identifier with a menu entry.
 @var{id} is string of ASCII aphanumeric characters, underscore and hyphen
 and should not start with a digit.
+
+All other arguments including @var{title} are passed as positional parameters
+when list of commands is executed with @var{title} always assigned to @code{$1}.
 @end deffn