grub-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] document that menuentry takes positional arguments


From: Vladimir 'φ-coder/phcoder' Serbinenko
Subject: Re: [PATCH] document that menuentry takes positional arguments
Date: Fri, 12 Jul 2013 15:43:58 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130630 Icedove/17.0.7

Go ahead.
On 25.06.2013 19:06, Andrey Borzenkov wrote:
---
  docs/grub.texi | 5 ++++-
  1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/docs/grub.texi b/docs/grub.texi
index 9dcfa2d..1e53364 100644
--- a/docs/grub.texi
+++ b/docs/grub.texi
@@ -3264,7 +3264,7 @@ These commands can only be used in the menu:
  @deffn Command menuentry @var{title} @
   address@hidden @dots{}] address@hidden @
   address@hidden address@hidden address@hidden @
- @{ @var{command}; @dots{} @}
+ address@hidden @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







reply via email to

[Prev in Thread] Current Thread [Next in Thread]