bugGNU GRUB - Bugs: bug #48752, Simple arithmetic functionality

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #48752: Simple arithmetic functionality

Submitter:  Mirko Vogt <mirco>
Submitted:  Wed 10 Aug 2016 07:50:47 PM UTC
   
 
Category:  None Severity:  Major
Priority:  3 - Low Item Group:  Feature Request
Status:  None Privacy:  Public
Assigned to:  None Originator Name: 
Open/Closed:  Open Release:  Git master
Release:  Reproducibility:  Every Time
Planned Release:  2.03+

Wed 10 Aug 2016 07:50:47 PM UTC, original submission:  

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 :)

Mirko Vogt <mirco>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by phcoder (Updated the item)
  • -email is unavailable- added by mirco (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2016-10-11 phcoder Priority5 - Normal 3 - Low
        Planned ReleaseNone 2.03+

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code