bug-gawk
[Top][All Lists]
Advanced

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

Re: [bug-gawk] in-place edit request


From: Eli Zaretskii
Subject: Re: [bug-gawk] in-place edit request
Date: Wed, 26 Dec 2012 21:03:32 +0200

> From: address@hidden
> Date: Wed, 26 Dec 2012 00:12:27 -0700
> 
> > > I suspect that some combination of dup, fileno, freopen, fdopen, and
> > > *stdout = *fp / *fp = *stdout could be made to work on systems not
> > > supporting /dev/fd.
> >
> > Maybe.  Me, I don't eben understand what you are trying to accomplish,
> > as you'd be mv'ing the output anyway.
> 
> The idea is to replace stdout behind gawk's back so that it can just use
> stdout like it normally does, without requiring any changes to gawk
> itself.

Sorry, I still don't see the light.  If all you want is let Gawk use
stdout "like it normally does", why not just use it?  Or just use
freopen to redirect stdout to a temporary file, then mv that file as
you intended?

I guess I don't understand what is meant by "in-place edit".  The
explanation was by reference to Perl, which doesn't help me at all.



reply via email to

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