[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [bug-gawk] in-place edit request
From: |
arnold |
Subject: |
Re: [bug-gawk] in-place edit request |
Date: |
Wed, 26 Dec 2012 00:12:27 -0700 |
User-agent: |
Heirloom mailx 12.4 7/29/08 |
> > > But /dev/fd/N is not portable :-(
> >
> > Solaris, Linux, *BSD, Mac OS X, Cygwin. Portable enough for me.
>
> But obviously not for me.
Yes, I know. And I meant no disrespect or disparagement. But
I'm afraid I can't solve everyone's problems all the time. In many
cases, I'm willing to try, but I'm not willing to kill myself, either.
> > 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.
The move would happen after each input file is processed.
The in-place editing problem can be solved, quite probably even in a
totally portable way. (See some of the other notes in this thread.) It's
just that I personally feel like it's Somebody Else's Problem and not
mine. :-)
Thanks,
Arnold
- [bug-gawk] in-place edit request, Ed Morton, 2012/12/20
- Re: [bug-gawk] in-place edit request, Andrew J. Schorr, 2012/12/22
- Re: [bug-gawk] in-place edit request, Aharon Robbins, 2012/12/23
- Re: [bug-gawk] in-place edit request, Andrew J. Schorr, 2012/12/23
- Re: [bug-gawk] in-place edit request, Aharon Robbins, 2012/12/23
- Re: [bug-gawk] in-place edit request, Eli Zaretskii, 2012/12/23
- Re: [bug-gawk] in-place edit request, Aharon Robbins, 2012/12/25
- Re: [bug-gawk] in-place edit request, Eli Zaretskii, 2012/12/25
- Re: [bug-gawk] in-place edit request,
arnold <=
- Re: [bug-gawk] in-place edit request, Eli Zaretskii, 2012/12/26
- Re: [bug-gawk] in-place edit request, Andrew J. Schorr, 2012/12/26
- Re: [bug-gawk] in-place edit request, Eli Zaretskii, 2012/12/26
- Re: [bug-gawk] in-place edit request, Andrew J. Schorr, 2012/12/26
- Re: [bug-gawk] in-place edit request, Ed Morton, 2012/12/31
- Re: [bug-gawk] in-place edit request, arnold, 2012/12/31
- Re: [bug-gawk] in-place edit request, Ed Morton, 2012/12/31
- Re: [bug-gawk] in-place edit request, arnold, 2012/12/31
- Re: [bug-gawk] in-place edit request, Ed Morton, 2012/12/31
- Re: [bug-gawk] in-place edit request, Andrew J. Schorr, 2012/12/31