Public bug reported: Binary package hint: gawk-doc
in (gawk.info.gz)Records, this example is given: $ echo | awk 'BEGIN { RS = "a" } ; { print NF }' 1 But that's wrong: real results [EMAIL PROTECTED]:~$ echo | gawk 'BEGIN { RS = "a" } ; { print NF }' 0 [EMAIL PROTECTED]:~$ echo | gawk --posix 'BEGIN { RS = "a" } ; { print NF }' 1 gawk 1:3.1.6.dfsg-0ubuntu1 on AMD64 pre-Intrepid. I'm not sure what the best thing for the docs to say would be. I assume it's a bug in the docs, not in awk, but I'm not sure. I'm still trying to figure out what the most concise way to read lines from stdin, and feed them in batches of e.g. 10 lines to the stdin of separate invocations of another command. Probably perl, since awk's RS mechanism doesn't seem to be flexible enough. (I can do it in a perl one-liner, but I was trying to shorten it, and awk's print | command looks useful.) ** Affects: gawk-doc (Ubuntu) Importance: Undecided Status: New -- gawk-doc: example doesn't match actual output https://bugs.launchpad.net/bugs/287948 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs