grub-devel.gnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] document that menuentry takes positional arguments
@ 2013-06-25 17:06 Andrey Borzenkov
  2013-07-12 13:43 ` Vladimir 'φ-coder/phcoder' Serbinenko
  0 siblings, 1 reply; 2+ messages in thread
From: Andrey Borzenkov @ 2013-06-25 17:06 UTC (permalink / raw)
  To: grub-devel; +Cc: João Ricardo Sares Teles de Matos

---
 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} @
  [@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
 
 
-- 
tg: (2cca311..) u/menuentry-args (depends on: master)


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] document that menuentry takes positional arguments
  2013-06-25 17:06 [PATCH] document that menuentry takes positional arguments Andrey Borzenkov
@ 2013-07-12 13:43 ` Vladimir 'φ-coder/phcoder' Serbinenko
  0 siblings, 0 replies; 2+ messages in thread
From: Vladimir 'φ-coder/phcoder' Serbinenko @ 2013-07-12 13:43 UTC (permalink / raw)
  To: The development of GNU GRUB

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} @
>    [@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
>
>
>



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-07-12 13:44 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-06-25 17:06 [PATCH] document that menuentry takes positional arguments Andrey Borzenkov
2013-07-12 13:43 ` Vladimir 'φ-coder/phcoder' Serbinenko

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).