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: Andrew J. Schorr
Subject: Re: [bug-gawk] in-place edit request
Date: Wed, 2 Jan 2013 10:16:52 -0500
User-agent: Mutt/1.5.21 (2010-09-15)

On Wed, Jan 02, 2013 at 09:12:42AM +0100, Manuel Collado wrote:
> Just an additional thought. The -i behavior of Perl and Ruby, is
> usually combined with an additional -p flag that makes the final
> 'print' statement unnecessary. I.e., in gawk it would implicitly add
> a final '{print}' rule to the whole awk program. This -p flags makes
> sense by itself, not only as a -i companion.
> 
> I assume this feature cannot be implemented with the current
> extension mechanism, so it would be probably better to disregard it.
> But anyway I think it is worth just to mention it (perhaps in the
> inplace extension documentation).

This raises an excellent point.  I am looking for a volunteer to
write the documentation patch for doc/gawk.texi (which should include
the inplace.awk code that is extracted into awklib/eg/lib for
installation) and to write a nifty wrapper script to make this
new functionality easier to use.

Regards,
Andy



reply via email to

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