bug-gawk
[Top][All Lists]
Advanced

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

Re: fflush & close behavior not well-defined


From: Andrew J. Schorr
Subject: Re: fflush & close behavior not well-defined
Date: Mon, 14 Sep 2020 20:57:10 -0400
User-agent: Mutt/1.5.21 (2010-09-15)

I'm inclined to agree, although I'd point out that the potential "change" to
gawk would not break any existing programs, but merely extend the capability in
case someone needs it. But it's probably not worth the effort. Nonetheless, it
might be worth documenting somewhere that AWK behavior is not well-defined in
this respect.

Regards,
Andy

On Mon, Sep 14, 2020 at 04:08:15PM -0700, david kerns wrote:
> if it were put to a vote, I'd second the "no code change" option
> 
> On Mon, Sep 14, 2020 at 2:37 PM Nelson H. F. Beebe <beebe@math.utah.edu>
> wrote:
> 
> > I have read today's posting on the subject of quoted strings in
> > close() calls, where those strings are ambiguous.  My feelings are
> > that
> >
> >     (a) because neither awk's original authors nor POSIX had dealt with
> > this
> >         issue, and
> >
> >     (b) because it is likely in practice to be exceedingly rare, and
> >
> >     (c) because gawk should not introduce changes to the awk language
> >         unless they introduce significant new functionality (like
> >         gensub(), extension libraries, and access to multiple
> >         precision arithmetic).
> >
> > Thus all that gawk should do for the close() issue is to add one
> > sentence to one of its noteworthy "dark corners" in the gawk manual,
> > and leave gawk's code unchanged.
> >
> >
> > -------------------------------------------------------------------------------
> > - Nelson H. F. Beebe                    Tel: +1 801 581 5254
> >     -
> > - University of Utah                    FAX: +1 801 581 4148
> >     -
> > - Department of Mathematics, 110 LCB    Internet e-mail:
> > beebe@math.utah.edu  -
> > - 155 S 1400 E RM 233                       beebe@acm.org
> > beebe@computer.org -
> > - Salt Lake City, UT 84112-0090, USA    URL:
> > http://www.math.utah.edu/~beebe/ -
> >
> > -------------------------------------------------------------------------------
> >
> >

-- 
Andrew Schorr                      e-mail: aschorr@telemetry-investments.com
Telemetry Investments, L.L.C.      phone:  917-305-1748
152 W 36th St, #402                fax:    212-425-5550
New York, NY 10018-8765



reply via email to

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