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/ _______________________________________________ Bug-grub mailing list Bug-grub@gnu.org https://lists.gnu.org/mailman/listinfo/bug-grub