[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [bug-gawk] mktemp ?
From: |
Cedric Sodhi |
Subject: |
Re: [bug-gawk] mktemp ? |
Date: |
Fri, 24 Jan 2014 10:46:03 +0100 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
Thank you Andy.
Please note that the description of this mailing list on
http://savannah.gnu.org/mail/?group=gawk
says "gawk bug reports, enhancement requests, and all else." and
another, detailled description at
https://lists.gnu.org/mailman/listinfo/bug-gawk
says "Bug reports and all discussion about gawk.".
regards,
Cedric
On Thu, Jan 23, 2014 at 07:53:28PM -0500, Andrew J. Schorr wrote:
> On Fri, Jan 24, 2014 at 12:46:32AM +0100, Cedric Sodhi wrote:
> > Does anyone have a clue why
> >
> > gawk 'BEGIN { "mktemp" | getline this; "mktemp" | getline that; print this
> > " AND " that }'
> >
> > does only produce one tempfile?
>
> This is not a bug report. Such questions belong in comp.lang.awk.
>
> Here's a clue for you:
>
> gawk 'BEGIN {cmd = "mktemp"; cmd | getline this; close(cmd); cmd | getline
> that; print this " AND " that }'
>
> > On top of that,
> >
> > print "Something" >this
> >
> > will actually append to the tempfile and not overwrite it as a
> > single ">" usually does.
>
> Please read the manual.
>
> Regards,
> Andy