[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [bug-gawk] mktemp ?
From: |
Andrew J. Schorr |
Subject: |
Re: [bug-gawk] mktemp ? |
Date: |
Thu, 23 Jan 2014 19:53:28 -0500 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
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