This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] opts.sh & posix


Nathan Sidwell wrote:
Neil Booth wrote:

This may be a bug in your gawk.  It's certainly a widespread extension
that is not specific to gawk.


I have gawk 3.1.1, and I don't want to debug it :)
ok. gawk 3.1.2 has a different wrong behaviour :(
----3.1.1 blank record
nathan@garibaldi:38>printf "foo\n\nbar\n"  | gawk 'BEGIN{ RS="" } { print }'
foo

bar
----3.1.2 lost last record
nathan@garibaldi:47>printf "foo\n\nbar\n"  | ./gawk 'BEGIN{ RS="" } { print }'
foo
----

waaa!

nathan

--
Nathan Sidwell    ::   http://www.codesourcery.com   ::     CodeSourcery LLC
         The voices in my head said this was stupid too
nathan@codesourcery.com    ::     http://www.planetfall.pwp.blueyonder.co.uk



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]