jghub
jghub
this code ``` i=0 v=a s= while ((i < 10000)); do ((++i)) s+=$v done [[ $s == +($v) ]] ``` reliably segfaults with current ksh2020, the problem is in this...
**Description of problem:** consider a stupid micro benchmark like ` function repeatloop { nameref count=$1 integer i=0 buf=0 for ((i=0; i< $count; i++)); do ((buf++)) : done print $buf }...
**Description of problem:** I tried out a recent commit (c99e9ff) which breaks my scripts that use "command cd" **Ksh version:** commit c99e9ff **How reproducible:** always. **Steps to reproduce:** 1. type...
**Description of problem:** commit c99e9ff13e8fc1bf46127e6f28d0f0bde16ffda0 is currently the basis for a brand new "ksh-devel" package thankfully provided by MacPorts for OSX users. when installed ksh reports its version as 2020.0.0-beta1...
**Description of problem:** krader1961 currently closes issues ad hoc when opinions are voiced he disapproves of and views as "unconstructive". point at hand: https://github.com/att/ast/issues/1444 https://github.com/att/ast/issues/1447 this is very bad style...
I accidentally noted the following behaviour: ``` printf '%.1f\n' 0.19 # --> 0.2 good printf '%.2f\n' 0.019 # --> 0.01 BAD printf '%.1g\n' 0.019 # --> 0.02 good ``` so...
by default `time` reports two decimal digits. this is controlled by the variable `TIMEFORMAT`. changing the latter to, e,g, ` TIMEFORMAT=$'\nreal\t%3R\tuser\t%3U\tsys\t%3S'` enforces reporting of 3 decimal digits (more are not...
fixes a trivial troff formatting error in the manpage which results in erroneous display of the default value of TIMEFORMAT with `man ksh`.