original-mawk
original-mawk copied to clipboard
bug-reports for mawk (originally on GoogleCode)
Dear Mr. Dickey setting both `CONVFMT `and `OFMT `to `%.f` results in `18446744073709551615` yet, `print sprintf("%.f", 16^16)` results in `%.f :: 18446744073709551616` While I understand your stated rationale…. ``` [20200911](https://invisible-island.net/mawk/CHANGES.html#index-t20200911)...
If you compile `mawk` with `clang` and `CFLAGS=-fsanitize=memory LDFLAGS=-fsanitize=memory`, then mawk errors out when you do this: ``` # Create an 8K file filled with newlines $ yes '' |...
Consider this testcase: ``` match($1, /foobar1?1?/) { print RLENGTH } ``` ``` $ echo foobar11 | mawk -f test.awk 7 ``` bwk's `awk`, `gawk` as well as `mawk` when compiled...
I found this problem while trying to use mawk to implement tzselect, an awk-using program that's part of tzcode. To reproduce the bug, run this shell command: ``` mawk 'BEGIN...
Currently gawk (v5.0.1) is about twice as quick as mawk (v1.3.4) for `mawk 'BEGIN{ while(i
I was bewildered after finding that my function ``` function rand_init() { cmd = "od -An -N4 -tu4 /dev/urandom" cmd | getline close(cmd) srand($1) } ``` always seeded with the...
Hello, I'm using the awk command to increase a version number. ``` $ awk -vFS=. -vOFS=. '{$NF++;print}'
This is with mawk 1.3.4 20231126. Here is a fix. The problem occurs only with 2**31 or more repetitions so this is only a theoretical bug. ``` --- rexp.c.~1~ 2023-07-30...
according to the GNU awk manual, awk is required to flush its output when a system() call is executed, and so system("") serves as a neat and portable trick to...
It seems that `getline` won't return until EOF unless RS is `\n`. This effectively means that long running programs won't produce output until they are terminated. E.G `{ echo "test|one";sleep...