|
From: | Bruno Haible |
Subject: | Re: [PATCH] core-count: A new program to count the number of cpucores |
Date: | Tue, 27 Oct 2009 00:31:28 +0100 |
User-agent: | KMail/1.9.9 |
Pádraig Brady wrote: > Hmm it's a bit surprising that min()/max() are not available > as $((shell arithmetic)) or in `expr`. Consequently I agree that > adding the option you suggest is useful. But min() and max() are available through the 'test' program or shell built-in command. If the user can write n=`count-cores` test ! $n -gt 5 || n=5 test ! $n -lt 2 || n=2 there is no big advantage in additional optional that allow him to write n=`count-cores --min=2 --max=5` Bruno
[Prev in Thread] | Current Thread | [Next in Thread] |