bug-grub
[Top][All Lists]
Advanced

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

[bug #33460] please shift menuentry params


From: Ximin Luo
Subject: [bug #33460] please shift menuentry params
Date: Thu, 02 Jun 2011 09:11:26 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:2.0) Gecko/20110327 Firefox/4.0 Iceweasel/4.0

URL:
  <http://savannah.gnu.org/bugs/?33460>

                 Summary: please shift menuentry params
                 Project: GNU GRUB
            Submitted by: infinity0
            Submitted on: Thu 02 Jun 2011 09:11:25 GMT
                Category: User Interface
                Severity: Major
                Priority: 5 - Normal
              Item Group: Action Request
                  Status: None
                 Privacy: Public
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 
                 Release: other
         Reproducibility: Every Time
         Planned Release: None

    _______________________________________________________

Details:

currently, dynamic menuentry is enabled as per the following syntax:

grub> menuentry testentry arg1 arg2 arg3 { echo $chosen $1 $2 $3; sleep 1; }

selecting this entry outputs:
testentry testentry arg1 arg2

Please change grub so that $1 refers to arg1, i.e. have $1 start at the first
*argument*, rather than the entry name, since $chosen is already set to the
entry name.

The entry above should then output:
testentry arg1 arg2 arg3
which is more intuitive and shell-like

This feature is currently undocumented so this request should not be a problem
to "affect existing users".

One simple way of implementing it is to implicitly call shift at the start of
the menuentry commands.





    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?33460>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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