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