On Thu, Apr 13, 2017, 03:04 Xen <l...@xenhideout.nl> wrote: > Nicole schreef op 12-04-2017 18:51: > > Thank you for your kind reply, Vladimir. I failed to find the probe > > command - I promise - I spent quite a few hours digging through the > > source. As for the $((...)) and $[...] - I'll look into it. > > > > It seems that my paltry contributions are not needed, after all. > > Bash syntax will not have the min/max behaviour though unless you use a > kind of modulo which will make it complex. > There is a $[a>b?a:b] syntax
> > ie. normally you would do that with: x = (x + 1) mod 4, or x = (x - 1 + > 4) mod 4. > > although I'm not sure a standard "round robin" function like that would > be meaningful but who knows. > > so the " arithmetic --set fred --min 2 -- max 10 "1" "+" "2" " > > will come down to > > fred=$(( (((fred-2) + 1) % 8) + 2 )) -- I assume. Or if you still had > those min/max functions it'd come down to ? > > arithmetic --set fred --min 2 --max 10 $(( fred + 1 )) ? > > Regards. > > _______________________________________________ > Grub-devel mailing list > Grub-devel@gnu.org > https://lists.gnu.org/mailman/listinfo/grub-devel >
_______________________________________________ Grub-devel mailing list Grub-devel@gnu.org https://lists.gnu.org/mailman/listinfo/grub-devel