URL: <http://savannah.gnu.org/bugs/?32450>
Summary: pager does not work within a menuentry if loaded via configfile Project: GNU GRUB Submitted by: joshtriplett Submitted on: Sat 12 Feb 2011 11:16:49 PM PST Category: None Severity: Major Priority: 5 - Normal Item Group: None Status: None Privacy: Public Assigned to: None Originator Name: Originator Email: Open/Closed: Open Discussion Lock: Any Release: Release: Bazaar - trunk Reproducibility: Every Time Planned Release: None _______________________________________________________ Details: Originally reported as http://bugs.debian.org/612995 >From the command line, I can "set pager=1", and then either cat a long file or use a for loop to echo 30 lines, and see that the pager puts up a "-- MORE --" prompt and waits for a key. However, the same thing doesn't seem to work from within a menuentry in a file loaded by "configfile". Try putting the following file as "test.cfg" somewhere grub can get at, and then loading it via "configfile /path/to/test.cfg" from the grub command line: set pager=1 menuentry "Always present" { echo Insert something always useful here. for x in 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 ; do echo Piles of output done } x=3 if [ "$x" -gt 0 ] ; then menuentry "Conditionally present" { echo Insert something conditionally useful here. } fi if [ "$x" -gt 5 ] ; then menuentry "Conditionally present (and missing)" { echo Insert something conditionally non-useful here. } fi Loading test.cfg via configfile will bring up a menu with two entries. Choosing either one of them should prompt for a key at the end of the menuentry, and choosing the first one should additionally have a MORE prompt after 24 lines as well as the prompt at the end. If instead I make that file grub.cfg, rather than loading it via configfile from the command line, then the MORE prompt works in the first menu entry, but I still don't get prompts at the end of each menuentry's output like I did with previous versions of GRUB2. (I know that it works with at least bzr revision 2587.) _______________________________________________________ Reply to this item at: <http://savannah.gnu.org/bugs/?32450> _______________________________________________ Message sent via/by Savannah http://savannah.gnu.org/ _______________________________________________ Bug-grub mailing list Bug-grub@gnu.org http://lists.gnu.org/mailman/listinfo/bug-grub