bug-gawk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug-gawk] "The GNU AWK User's Guide" Section 4.1 - example program


From: 李晓伟
Subject: [bug-gawk] "The GNU AWK User's Guide" Section 4.1 - example program
Date: Wed, 01 Aug 2012 11:33:28 +0800
User-agent: Mozilla/5.0 (Windows NT 6.1; rv:11.0) Gecko/20120327 Thunderbird/11.0.1

I think I've found a problem in "The GNU AWK User's Guide" Section 4.1
How Input Is Split into Records

$ echo | awk 'BEGIN { RS = "a" } ; { print NF }'
-| 1

But I tried all versions of awk I have, output is 0.

It's very possible that it's the very old version of gawk's behavior.

Hope this is helpful.

thx






reply via email to

[Prev in Thread] Current Thread [Next in Thread]