URL:
  <https://savannah.gnu.org/bugs/?59000>

                 Summary: regexp sees  parse-string "-x" as a parameter!
                 Project: GNU GRUB
            Submitted by: goverp
            Submitted on: Sun 23 Aug 2020 08:00:07 PM UTC
                Category: Booting
                Severity: Major
                Priority: 5 - Normal
              Item Group: Software Error
                  Status: None
                 Privacy: Public
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
                 Release: 
                 Release: 2.02
         Discussion Lock: Any
         Reproducibility: Every Time
         Planned Release: None

    _______________________________________________________

Details:

Actually, my Gentoo arm64 system says it's sys-boot/grub-2.04-r1, but your
release spinbutton doesn't go that far.

EFI boot system, 64-bit i686 hardware.

in a grub.cfg script:

foo="-gentoo"
regexp --set=1:bah '^(.*)$' "$foo"

should succeed and set bah to '-gentoo'.
In fact it fails and says '-gentoo' is an invalid option.

(I'm doing this because I wanted to sort kernel images named
/boot/vmlinuz-5.8.1-gentoo.new
by version number, and thus need to compare in stages, either by collating
sequence for non-numeric parts, and numeric comparison for numbers; the
parsing loop fails cos the last nonnumeric part is "-gentoo".

Actually, as well as fixing this bug, which produces very hard-to-debug
results, if you could add some "sort" parameters to the ls module (by date and
version, optionally reversed, that would save a load of code.)




    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?59000>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/


Reply via email to