On Sat, 21 Oct 2023 at 20:04, <arnold@skeeve.com> wrote:
[snip ]
I have rewritten the paragraphs
in that section of the manual to make this more clear. New text
is below. I don't see a need to change the lint warning itself.
[snip]
You should be consistent and always use the same operator for all output
to the same file. (You can mix @samp{>} and @samp{>>}, and nothing bad
will happen, but mixing the operators is considered to be bad style in
@command{awk}. If invoked with the @option{--lint} option, @command{gawk}
issues a warning when it encounters both operators being used for the
same open file.)
It's not unusual that the same program could be used for writing a file
from scratch, or to append to it.
Except for the first print statement (i.e., the open), the code would be
the same. How would I
write it in order to remain consistent and in good style?