|
From: | Xen |
Subject: | Re: Contribution |
Date: | Wed, 12 Apr 2017 19:03:18 +0200 |
User-agent: | Roundcube Webmail/1.2.4 |
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.
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 tofred=$(( (((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.
[Prev in Thread] | Current Thread | [Next in Thread] |