Received: from list by lists.gnu.org with archive (Exim 4.71) id 1cyLg1-0005Jl-DY for mharc-grub-devel@gnu.org; Wed, 12 Apr 2017 13:03:29 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:59858) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cyLfz-0005Jb-8h for grub-devel@gnu.org; Wed, 12 Apr 2017 13:03:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cyLfs-0008N9-4p for grub-devel@gnu.org; Wed, 12 Apr 2017 13:03:27 -0400 Received: from smtp1.signet.nl ([83.96.147.43]:48630) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cyLfr-0008Lx-WC for grub-devel@gnu.org; Wed, 12 Apr 2017 13:03:20 -0400 Received: from webmail.dds.nl (app1.dds.nl [81.21.136.61]) by smtp1.signet.nl (Postfix) with ESMTP id 71F5FF5F6A for ; Wed, 12 Apr 2017 19:03:18 +0200 (CEST) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Wed, 12 Apr 2017 19:03:18 +0200 From: Xen To: grub-devel@gnu.org Subject: Re: Contribution In-Reply-To: References: Message-ID: <10449361a2c5c6bfb1ed413f5bde09b6@xenhideout.nl> X-Sender: list@xenhideout.nl User-Agent: Roundcube Webmail/1.2.4 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 83.96.147.43 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Apr 2017 17:03:28 -0000 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 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.