From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1UrWh8-0001nq-GN for mharc-grub-devel@gnu.org; Tue, 25 Jun 2013 13:06:18 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:33462) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UrWh5-0001ly-7x for grub-devel@gnu.org; Tue, 25 Jun 2013 13:06:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UrWh3-0000dj-PC for grub-devel@gnu.org; Tue, 25 Jun 2013 13:06:15 -0400 Received: from mail-lb0-x232.google.com ([2a00:1450:4010:c04::232]:56983) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UrWh3-0000db-HP for grub-devel@gnu.org; Tue, 25 Jun 2013 13:06:13 -0400 Received: by mail-lb0-f178.google.com with SMTP id y6so1017533lbh.23 for ; Tue, 25 Jun 2013 10:06:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer; bh=d3NNWQVNQFRQVwZN5RtyNWUGvMh6N5577qmBWxWYFAM=; b=fp/HelLAHrds2bhHHmzB52yWrm0GM0/BCPF678LKOsVqZk0dQ/FgD87m8tVgCrSSQP n09Tt9hfenaKv3vrxqDkbo0mAgwyycEAjLMimThbnKuaYxHvMw/UOW0ni/iLdBeGAc36 OXQ2+Bx92nA0m0b2hO098nCcShTwzKeeUggEu9xczMSjBl0rmrULUGSuYkvvJE80wFaG RH6bAUOdbEVynD7FIRyN4wWbn8xtpSQjgsQeIioBk2l5THDWmjPSKtLOmYvokAEg5gVA 4BXaPi8Vr/VixJWw8DTl4lTOJJ1+ew01h5UmOdApsOn6OpJi6QI04QZEwzfGlHiC9NC4 5wCQ== X-Received: by 10.112.156.68 with SMTP id wc4mr330293lbb.38.1372179972505; Tue, 25 Jun 2013 10:06:12 -0700 (PDT) Received: from localhost.localdomain (ppp79-139-160-84.pppoe.spdop.ru. [79.139.160.84]) by mx.google.com with ESMTPSA id a3sm9135600lbg.2.2013.06.25.10.06.11 for (version=TLSv1.2 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 25 Jun 2013 10:06:12 -0700 (PDT) From: Andrey Borzenkov To: grub-devel@gnu.org Subject: [PATCH] document that menuentry takes positional arguments Date: Tue, 25 Jun 2013 21:06:05 +0400 Message-Id: <1372179965-17980-1-git-send-email-arvidjaar@gmail.com> X-Mailer: git-send-email 1.8.1.4 X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4010:c04::232 Cc: =?UTF-8?q?Jo=C3=A3o=20Ricardo=20Sares=20Teles=20de=20Matos?= 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: Tue, 25 Jun 2013 17:06:16 -0000 --- 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)