Revision 9560
Added by Aaron Marcuse-Kubitza over 11 years ago
lib/sh/binsearch.sh | ||
---|---|---|
4 | 4 |
if self_not_included; then |
5 | 5 |
|
6 | 6 |
function binsearch() # usage: min=# max=# binsearch >_cmd args... (uses $i) |
7 |
# because integer division trucates, $max is *exclusive* |
|
7 |
# because integer division truncates, $max is *exclusive*
|
|
8 | 8 |
{ |
9 | 9 |
echo_func; kw_params min max; : "${min?}" "${max?}" |
10 | 10 |
local min="$min" max="$max" i |
Also available in: Unified diff
lib/sh/binsearch.sh: binsearch(): doc comment: fixed typo in "truncates"