Index of /archives/NetBSD/NetBSD-release-10/src/external/historical/nawk/dist/bugs-fixed
Name Last modified Size Description
Parent Directory -
CVS/ 2022-12-18 05:35 -
numeric-subsep.bad 2020-02-19 05:50 1
getline-numeric.in 2020-02-19 05:50 4
numeric-subsep.ok 2020-02-19 05:50 4
nf-self-assign.bad 2020-02-19 05:50 6
nf-self-assign.ok 2020-02-19 05:50 6
numeric-fs.ok 2020-02-19 05:50 6
numeric-output-seps.bad 2020-02-19 05:50 8
numeric-output-seps.ok 2020-02-19 05:50 8
numeric-rs.bad 2020-02-19 05:50 8
numeric-rs.ok 2020-02-19 05:50 8
a-format.ok 2020-02-19 05:50 9
unary-plus.ok 2020-02-19 05:50 10
split-fs-from-array.ok 2020-02-19 05:50 13
subsep-overflow.ok 2020-02-19 05:50 14
concat-assign-same.bad 2020-02-19 05:50 16
concat-assign-same.ok 2020-02-19 05:50 16
ofs-rebuild.ok 2020-02-19 05:50 17
negative-nf.awk 2020-02-19 05:50 19
getline-numeric.ok 2020-02-19 05:50 23
ofs-rebuild.bad 2020-02-19 05:50 23
unary-plus.bad 2020-02-19 05:50 23
getline-numeric.bad 2020-02-19 05:50 24
missing-precision.awk 2020-02-19 05:50 25
decr-NF.ok 2020-02-19 05:50 27
a-format.awk 2020-02-19 05:50 30
decr-NF.bad 2020-02-19 05:50 30
fmt-overflow.awk 2020-02-19 05:50 40
nf-self-assign.awk 2020-02-19 05:50 51
string-conv.ok 2020-02-19 05:50 53
unary-plus.awk 2020-02-19 05:50 56
a-format.bad 2020-02-19 05:50 60
missing-precision.ok 2020-02-19 05:50 62
negative-nf.ok 2020-02-19 05:50 65
string-conv.bad 2020-02-19 05:50 67
numeric-rs.awk 2020-02-19 05:50 74
numeric-output-seps.awk 2020-02-19 05:50 79
system-status.ok 2020-02-19 05:50 86
system-status.bad 2020-02-19 05:50 98
numeric-subsep.awk 2020-02-19 05:50 102
decr-NF.awk 2020-02-19 05:50 103
concat-assign-same.awk 2020-02-19 05:50 116
split-fs-from-array.awk 2020-02-19 05:50 122
numeric-fs.awk 2020-02-19 05:50 124
getline-numeric.awk 2020-02-19 05:50 144
fs-overflow.awk 2020-02-19 05:50 159
string-conv.awk 2020-02-19 05:50 240
fmt-overflow.ok 2020-02-19 05:50 256
space.bad 2020-02-19 05:50 278
space.ok 2020-02-19 05:50 282
space.awk 2020-02-19 05:50 376
ofs-rebuild.awk 2020-02-19 05:50 465
system-status.awk 2020-02-19 05:50 575
subsep-overflow.awk 2020-02-19 05:50 579
README 2020-02-19 05:50 2.5K
List of bugs fixed.
1. ofs-rebuild: OFS value used to rebuild the record was incorrect.
Fixed August 19, 2014. Revised fix August 2018.
2. system-status: Instead of a floating-point division by 256, use
the wait(2) macros to create a reasonable exit status. Fixed March 12, 2016.
3. space: Use provided xisblank() function instead of ispace() for
matching [[:blank:]].
4. a-format: Add POSIX standard %a and %A to supported formats. Check
at runtime that this format is available.
5. decr-NF: Decrementing NF did not change $0. This is a decades-old
bug. There are interactions with the old and new value of OFS as well.
Most of the fix came from the NetBSD awk.
6. string-conv: String conversions of scalars were sticky. Once a
conversion to string happened, even with OFMT, that value was used until
a new numeric value was assigned, even if OFMT differed from CONVFMT,
and also if CONVFMT changed.
7. unary-plus: Unary plus on a string constant returned the string.
Instead, it should convert the value to numeric and give that value.
8. concat-assign-same: Concatenation previously evaluated both sides of the
expression before doing its work, which, since assign() evaluates to the cell
being assigned to, meant that expressions like "print (a = 1) (a = 2)" would
print "22" rather than "12".
9. missing-precision: When using the format string "%*s", the precision
argument was used without checking if it was present first.
10. missing-precision: When using the format string "%*s", the precision
argument was used without checking if it was present first.
11. fmt-overflow: The buffer used for OFMT/CONVFMT conversions was written
to with sprintf(), which meant that some conversions could write past the
end.
12. numeric-subsep, numeric-fs, numeric-output-seps, numerics-rs: If SUBSEP,
FS, RS, OFS, or ORS were set to a numeric value, then their string values
wouldn't always be generated before being needed.
13. subsep-overflow: The length of SUBSEP needs to be rechecked after
calling execute(), in case SUBSEP itself has been changed.
14. split-fs-from-array: If the third argument to split() comes from the
array passed as the second argument, then split() would previously read
from the freed memory and possibly produce incorrect results (depending
on the system's malloc()/free() behaviour.)
15. getline-numeric: The `getline xx < file' syntax did not check if
values were numeric, in discordance from POSIX. Test case adapted from
one posted by Ben Bacarisse <ben.usenet@bsb.me.uk> in comp.lang.awk,
January 2019.