From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1Uxddt-0000iH-1E for mharc-grub-devel@gnu.org; Fri, 12 Jul 2013 09:44:13 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:45955) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uxddn-0000gc-6Y for grub-devel@gnu.org; Fri, 12 Jul 2013 09:44:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Uxddj-0006vt-VF for grub-devel@gnu.org; Fri, 12 Jul 2013 09:44:07 -0400 Received: from mail-wi0-x233.google.com ([2a00:1450:400c:c05::233]:53003) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uxddj-0006vg-Oz for grub-devel@gnu.org; Fri, 12 Jul 2013 09:44:03 -0400 Received: by mail-wi0-f179.google.com with SMTP id hj3so695610wib.6 for ; Fri, 12 Jul 2013 06:44:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=7j3Ffx2iuSaSwvzRc4Hns5X+rFYn+R1WHP/3JmHLC2M=; b=ttFsZpKC6heyX2sFIA0gOrLkngNi9cr3tWWJOvPAgENRbGYFFIaysVYg5BdgSgntxN U0CwQibWbz+oQ0RxsXXZKlJC4+G73AGNC65lwfkTRhXDZvxP4iEEeW5y/1Z+SBHck4tG UYxD7M+2k3N3fnvWMc5aErM+gICSovJfQJjrv6WUX9SdzIS6Eauq3IjlH/xk4d7wWRvA +gFyhL0kNaBT72uUMb9GdQcESCcD+uotscCzWapWTcGKeCkb9bOMAwAsN7RJokpssqPw g9et2tLC0dJIGD1WvsUDj75w6sHZ5aus7pgDqf8ZhmJz5qqc4h96EIUYzjBPvnWOUnCO bacA== X-Received: by 10.194.174.4 with SMTP id bo4mr24353128wjc.40.1373636642395; Fri, 12 Jul 2013 06:44:02 -0700 (PDT) Received: from [192.168.42.68] (117-236.197-178.cust.bluewin.ch. [178.197.236.117]) by mx.google.com with ESMTPSA id j20sm3529395wie.7.2013.07.12.06.44.00 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 12 Jul 2013 06:44:01 -0700 (PDT) Message-ID: <51E0081E.2030805@gmail.com> Date: Fri, 12 Jul 2013 15:43:58 +0200 From: =?UTF-8?B?VmxhZGltaXIgJ8+GLWNvZGVyL3BoY29kZXInIFNlcmJpbmVua28=?= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130630 Icedove/17.0.7 MIME-Version: 1.0 To: The development of GNU GRUB Subject: Re: [PATCH] document that menuentry takes positional arguments References: <1372179965-17980-1-git-send-email-arvidjaar@gmail.com> In-Reply-To: <1372179965-17980-1-git-send-email-arvidjaar@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:400c:c05::233 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Jul 2013 13:44:12 -0000 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 > > >