[Top][All Lists]

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

[bug #48752] Simple arithmetic functionality

From: Mirko Vogt
Subject: [bug #48752] Simple arithmetic functionality
Date: Wed, 10 Aug 2016 19:50:50 +0000 (UTC)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Firefox/45.0


                 Summary: Simple arithmetic functionality
                 Project: GNU GRUB
            Submitted by: mirco
            Submitted on: Wed 10 Aug 2016 07:50:47 PM GMT
                Category: None
                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: Git master
         Reproducibility: Every Time
         Planned Release: None



I'd like to ask for very basic arithmetic functionality for the scripting
engine of GRUB, mainly addition / subtraction, maybe even some more by e.g.
taking over code from `let` or the `$((..))` syntax from *sh.

Very concrete use case would be a typical ping-pong scenario:

Counting (failed) boot attempts, storing them in the GRUB environment block
and switching to a failsafe / second-system / you-name-it, once booting into a
system failed `n` times.

Yes, this can be done without arithmetic operation.

But apart from it "just not being nice" (however I think nice - as in:
readable - code is quite a point for the essential part of booting a system),
I can think of quite a few other scenarios where basic arithmetic would really
add to GRUB.

Thank you for having read my feature request till the end :)


Reply to this item at:


  Message sent via/by Savannah

reply via email to

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