All of lore.kernel.org
 help / color / mirror / Atom feed
From: Xen <list@xenhideout.nl>
To: grub-devel@gnu.org
Subject: Re: Contribution
Date: Wed, 12 Apr 2017 19:03:18 +0200	[thread overview]
Message-ID: <10449361a2c5c6bfb1ed413f5bde09b6@xenhideout.nl> (raw)
In-Reply-To: <b69464f7-b8a3-2b33-735d-8e99a5c9043b@gmail.com>

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.


  reply	other threads:[~2017-04-12 17:03 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.37.1492012806.25481.grub-devel@gnu.org>
2017-04-12 16:51 ` Contribution Nicole
2017-04-12 17:03   ` Xen [this message]
2017-04-12 20:06     ` Contribution Vladimir 'phcoder' Serbinenko
2017-04-12 18:25 ` Contributions Nicole
2017-04-12 20:08   ` Contributions Vladimir 'phcoder' Serbinenko
     [not found] <mailman.65479.1492027745.22739.grub-devel@gnu.org>
2017-04-12 20:57 ` Contribution Nicole
     [not found] <mailman.65311.1491983735.22739.grub-devel@gnu.org>
2017-04-12 10:36 ` Contribution Nicole
2017-04-12 10:41   ` Contribution Vladimir 'phcoder' Serbinenko
2014-05-28 14:58 Contribution Alexandre MALKI
     [not found] <CAA8043idUL1qbWfrBffhYXL8JX0LZ+WsMseUypatret7PrxBGw@mail.gmail.com>
     [not found] ` <CABBk=J9-hrMgGJ6ofvR0uuzX_gTfKJhH_TFCS4fR6m6gD=UBmg@mail.gmail.com>
     [not found]   ` <CAA8043g_vkZvx_ErHZbF8eq12T2bvvXGWA_u=NRdwEWnmaqaug@mail.gmail.com>
2013-07-01 19:52     ` Contribution christophe courtaut
2013-07-01 20:23       ` Contribution Yehuda Sadeh
2013-07-04 13:58         ` Contribution christophe courtaut
2013-07-05  7:05           ` Contribution Yehuda Sadeh
2013-07-10 15:24             ` Contribution christophe courtaut
2013-07-10 16:08               ` Contribution Yehuda Sadeh
  -- strict thread matches above, loose matches on Subject: below --
2013-06-27 14:38 Contribution christophe courtaut
2009-01-10  6:48 Contribution Mehdi Sheikhalishahi
2005-03-26  8:51 Contribution Chris Hiszpanski
2005-03-28 17:24 ` Contribution Hans Reiser
2004-11-26 10:13 contribution Artem B. Bityuckiy

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=10449361a2c5c6bfb1ed413f5bde09b6@xenhideout.nl \
    --to=list@xenhideout.nl \
    --cc=grub-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.