URL:
<http://savannah.gnu.org/bugs/?48752>
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:
Release: Git master
Reproducibility: Every Time
Planned Release: None
_______________________________________________________
Details:
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:
<http://savannah.gnu.org/bugs/?48752>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
_______________________________________________
Bug-grub mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-grub