| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
| |
An if with no else clause answers 0 even when its condition failed, so
dbracket's probe reported success on dash and the row said differs
instead of n/a. The probe now says so itself.
|
| |
|
|
|
|
|
| |
ksh88 works in 32-bit integers, so summing i*2 over 200000 iterations
overflowed and the benchmark reported "differs" instead of a time: the
same script, two answers. Summing (i % 100) * 2 does the same work and
fits in 31 bits.
|
| |
|
|
|
|
|
|
|
|
|
|
| |
The column for z/OS /bin/sh said sh, which hid that it is IBM's ksh88
port, and two benchmarks skipped it for the wrong reason: dbracket probed
[[ ]] with eval, which ksh88 rejects even though [[ ]] works, and
arithcmd used (( )) as a command, which is ksh93 and not ksh88.
run.sh now takes shell=label arguments and labels /bin/sh as ksh88 on
z/OS, and BENCH selects a subset. dbracket probes the form it uses.
arithcmd keeps to typeset -i, let and $(( )), so ksh88 runs it, and the
(( )) command form moved to dparen.sh.
|
|
|
[[ ]] is parsed into a tree and evaluated without argv or lookup.
Fixes: errexit inside a tested subshell, the ${x:?} message, arithmetic
on variables holding expressions, printf %c of an empty argument,
job text for arithmetic, and \n and \e prompt escapes.
|