bug-gnu-utils
[Top][All Lists]
Advanced

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

Re: GNU awk ver. 3.1.6 OFS-related bug


From: Aharon Robbins
Subject: Re: GNU awk ver. 3.1.6 OFS-related bug
Date: Tue, 8 Mar 2011 23:34:30 +0000 (UTC)

In article <address@hidden>,
Andreas Schwab  <address@hidden> wrote:
>George Zarkadas <address@hidden> writes:
>
>> Awk does not honor OFS assignments in the BEGIN block (when FS is also
>> previously set), unless a statement inside the applied rule's action
>> forces record reconstitution. 
>
>Correct.  $0 is only rebuilt if a field is changed.

Just to make it 100% clear - the reported behavior is not a bug.
$0 is the full record, including leading and trailing and intervening
whitespace.

Thanks for taking the time to send in a report.

Arnold
-- 
Aharon (Arnold) Robbins                         arnold AT skeeve DOT com
P.O. Box 354            Home Phone: +972  8 979-0381
Nof Ayalon              Cell Phone: +972 50  729-7545
D.N. Shimshon 99785     ISRAEL


reply via email to

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