Home | History | Annotate | only in /external/one-true-awk/bugs-fixed
Up to higher level directory
NameDateSize
a-format.awk22-Oct-202030
a-format.bad22-Oct-202060
a-format.ok22-Oct-20209
concat-assign-same.awk22-Oct-2020116
concat-assign-same.bad22-Oct-202016
concat-assign-same.ok22-Oct-202016
decr-NF.awk22-Oct-2020103
decr-NF.bad22-Oct-202030
decr-NF.ok22-Oct-202027
fmt-overflow.awk22-Oct-202040
fmt-overflow.ok22-Oct-2020256
fs-overflow.awk22-Oct-2020159
getline-numeric.awk22-Oct-2020144
getline-numeric.bad22-Oct-202024
getline-numeric.in22-Oct-20204
getline-numeric.ok22-Oct-202023
missing-precision.awk22-Oct-202025
missing-precision.ok22-Oct-202062
negative-nf.awk22-Oct-202019
negative-nf.ok22-Oct-202065
nf-self-assign.awk22-Oct-202051
nf-self-assign.bad22-Oct-20206
nf-self-assign.ok22-Oct-20206
numeric-fs.awk22-Oct-2020124
numeric-fs.ok22-Oct-20206
numeric-output-seps.awk22-Oct-202079
numeric-output-seps.bad22-Oct-20208
numeric-output-seps.ok22-Oct-20208
numeric-rs.awk22-Oct-202074
numeric-rs.bad22-Oct-20208
numeric-rs.ok22-Oct-20208
numeric-subsep.awk22-Oct-2020102
numeric-subsep.bad22-Oct-20201
numeric-subsep.ok22-Oct-20204
ofs-rebuild.awk22-Oct-2020465
ofs-rebuild.bad22-Oct-202023
ofs-rebuild.ok22-Oct-202017
README22-Oct-20202.5K
space.awk22-Oct-2020376
space.bad22-Oct-2020278
space.ok22-Oct-2020282
split-fs-from-array.awk22-Oct-2020122
split-fs-from-array.ok22-Oct-202013
string-conv.awk22-Oct-2020240
string-conv.bad22-Oct-202067
string-conv.ok22-Oct-202053
subsep-overflow.awk22-Oct-2020579
subsep-overflow.ok22-Oct-202014
system-status.awk22-Oct-2020575
system-status.bad22-Oct-202098
system-status.ok22-Oct-202086
unary-plus.awk22-Oct-202056
unary-plus.bad22-Oct-202023
unary-plus.ok22-Oct-202010

README

      1 List of bugs fixed.
      2 
      3 1. ofs-rebuild: OFS value used to rebuild the record was incorrect.
      4 Fixed August 19, 2014. Revised fix August 2018.
      5 
      6 2. system-status: Instead of a floating-point division by 256, use
      7 the wait(2) macros to create a reasonable exit status. Fixed March 12, 2016.
      8 
      9 3. space: Use provided xisblank() function instead of ispace() for
     10 matching [[:blank:]].
     11 
     12 4. a-format: Add POSIX standard %a and %A to supported formats. Check
     13 at runtime that this format is available.
     14 
     15 5. decr-NF: Decrementing NF did not change $0. This is a decades-old
     16 bug. There are interactions with the old and new value of OFS as well.
     17 Most of the fix came from the NetBSD awk.
     18 
     19 6. string-conv: String conversions of scalars were sticky.  Once a
     20 conversion to string happened, even with OFMT, that value was used until
     21 a new numeric value was assigned, even if OFMT differed from CONVFMT,
     22 and also if CONVFMT changed.
     23 
     24 7. unary-plus: Unary plus on a string constant returned the string.
     25 Instead, it should convert the value to numeric and give that value.
     26 
     27 8. concat-assign-same: Concatenation previously evaluated both sides of the
     28 expression before doing its work, which, since assign() evaluates to the cell
     29 being assigned to, meant that expressions like "print (a = 1) (a = 2)" would
     30 print "22" rather than "12".
     31 
     32 9. missing-precision: When using the format string "%*s", the precision
     33 argument was used without checking if it was present first.
     34 
     35 10. missing-precision: When using the format string "%*s", the precision
     36 argument was used without checking if it was present first.
     37 
     38 11. fmt-overflow: The buffer used for OFMT/CONVFMT conversions was written
     39 to with sprintf(), which meant that some conversions could write past the
     40 end.
     41 
     42 12. numeric-subsep, numeric-fs, numeric-output-seps, numerics-rs: If SUBSEP,
     43 FS, RS, OFS, or ORS were set to a numeric value, then their string values
     44 wouldn't always be generated before being needed.
     45 
     46 13. subsep-overflow: The length of SUBSEP needs to be rechecked after
     47 calling execute(), in case SUBSEP itself has been changed.
     48 
     49 14. split-fs-from-array: If the third argument to split() comes from the
     50 array passed as the second argument, then split() would previously read
     51 from the freed memory and possibly produce incorrect results (depending
     52 on the system's malloc()/free() behaviour.)
     53 
     54 15. getline-numeric: The `getline xx < file' syntax did not check if
     55 values were numeric, in discordance from POSIX. Test case adapted from
     56 one posted by Ben Bacarisse <ben.usenet (a] bsb.me.uk> in comp.lang.awk,
     57 January 2019.
     58