Welcome to ftp.nluug.nl Current directory: /NetBSD/NetBSD-release-10/src/external/historical/nawk/dist/bugs-fixed/ |
|
Contents of README: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. |
Name Last modified Size
Parent Directory - CVS/ 17-Dec-2022 21:35 - README 18-Feb-2020 21:50 2.5K a-format.awk 18-Feb-2020 21:50 30 a-format.bad 18-Feb-2020 21:50 60 a-format.ok 18-Feb-2020 21:50 9 concat-assign-same.awk 18-Feb-2020 21:50 116 concat-assign-same.bad 18-Feb-2020 21:50 16 concat-assign-same.ok 18-Feb-2020 21:50 16 decr-NF.awk 18-Feb-2020 21:50 103 decr-NF.bad 18-Feb-2020 21:50 30 decr-NF.ok 18-Feb-2020 21:50 27 fmt-overflow.awk 18-Feb-2020 21:50 40 fmt-overflow.ok 18-Feb-2020 21:50 256 fs-overflow.awk 18-Feb-2020 21:50 159 getline-numeric.awk 18-Feb-2020 21:50 144 getline-numeric.bad 18-Feb-2020 21:50 24 getline-numeric.in 18-Feb-2020 21:50 4 getline-numeric.ok 18-Feb-2020 21:50 23 missing-precision.awk 18-Feb-2020 21:50 25 missing-precision.ok 18-Feb-2020 21:50 62 negative-nf.awk 18-Feb-2020 21:50 19 negative-nf.ok 18-Feb-2020 21:50 65 nf-self-assign.awk 18-Feb-2020 21:50 51 nf-self-assign.bad 18-Feb-2020 21:50 6 nf-self-assign.ok 18-Feb-2020 21:50 6 numeric-fs.awk 18-Feb-2020 21:50 124 numeric-fs.ok 18-Feb-2020 21:50 6 numeric-output-seps.awk 18-Feb-2020 21:50 79 numeric-output-seps.bad 18-Feb-2020 21:50 8 numeric-output-seps.ok 18-Feb-2020 21:50 8 numeric-rs.awk 18-Feb-2020 21:50 74 numeric-rs.bad 18-Feb-2020 21:50 8 numeric-rs.ok 18-Feb-2020 21:50 8 numeric-subsep.awk 18-Feb-2020 21:50 102 numeric-subsep.bad 18-Feb-2020 21:50 1 numeric-subsep.ok 18-Feb-2020 21:50 4 ofs-rebuild.awk 18-Feb-2020 21:50 465 ofs-rebuild.bad 18-Feb-2020 21:50 23 ofs-rebuild.ok 18-Feb-2020 21:50 17 space.awk 18-Feb-2020 21:50 376 space.bad 18-Feb-2020 21:50 278 space.ok 18-Feb-2020 21:50 282 split-fs-from-array.awk 18-Feb-2020 21:50 122 split-fs-from-array.ok 18-Feb-2020 21:50 13 string-conv.awk 18-Feb-2020 21:50 240 string-conv.bad 18-Feb-2020 21:50 67 string-conv.ok 18-Feb-2020 21:50 53 subsep-overflow.awk 18-Feb-2020 21:50 579 subsep-overflow.ok 18-Feb-2020 21:50 14 system-status.awk 18-Feb-2020 21:50 575 system-status.bad 18-Feb-2020 21:50 98 system-status.ok 18-Feb-2020 21:50 86 unary-plus.awk 18-Feb-2020 21:50 56 unary-plus.bad 18-Feb-2020 21:50 23 unary-plus.ok 18-Feb-2020 21:50 10
NLUUG - Open Systems. Open Standards
Become a member
and get discounts on conferences and more, see the NLUUG website!