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

                 Summary: search.file does not allow to set no_floppy=1
                 Project: GNU GRUB
            Submitted by: socketpair
            Submitted on: Сбт 03 Мар 2012 16:30:13
                Category: Booting
                Severity: Major
                Priority: 5 - Normal
              Item Group: Feature Request
                  Status: None
                 Privacy: Public
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 
                 Release: 1.98
         Reproducibility: Every Time
         Planned Release: None

    _______________________________________________________

Details:

if command used directly as "search.file passwd.txt myvar hint1 hint2" and not
as "search --file ...", then no_floppy=0 is hard coded. 

why not to require to set that parameter before hints, like this?

FUNC_NAME (args[0],                      /* key */
           argc == 1 ? 0 : args[1],      /* var */
           argc > 2 ? args[2][0] == '1', /* no_floppy */
           (args + 3),                   /* hints */
           argc > 3 ? argc - 3 : 0       /* hints count */
           );

It seems, that that bug is not only in search.file, but also in other search
commands.




    _______________________________________________________

Reply to this item at:

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

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


_______________________________________________
Bug-grub mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-grub

Reply via email to