[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [bug-gawk] [Question] Gawk 5.0.1: INPLACE_SUFFIX compatibility
From: |
arnold |
Subject: |
Re: [bug-gawk] [Question] Gawk 5.0.1: INPLACE_SUFFIX compatibility |
Date: |
Wed, 26 Jun 2019 12:52:25 -0600 |
User-agent: |
Heirloom mailx 12.5 7/5/10 |
See below...
"Andrew J. Schorr" <address@hidden> wrote:
> Hi Jakub,
>
> On Tue, Jun 25, 2019 at 12:02:20PM +0200, Jakub Martisko wrote:
> > with the introduction of namespaces, the INPLACE_SUFFIX=.foo seems to no
> > longer work and has been replaced by the inplace::suffix=.foo. Is there
> > some way, to make scripts using the INPLACE_SUFFIX variable (and probably
> > some others)
> > compatible with both gawk 4.2.1 and 5.0.1?
> >
> > An ugly way that comes to mind is something like:
> > ... gawk --version| ((grep 4.2.1 >/dev/null && echo "INPLACE_SUFFIX=")||
> > echo "inplace::suffix=") ...
> >
> > Is there some better (ideally a gawk only) way of doing this?
>
> I already noticed the bugzilla on this, and we have started to work on a patch
> to restore backwards compatibility by supporting either inplace::suffix or
> INPLACE_SUFFIX...
>
> Regards,
> Andy
The inplace code has been fixed, along with a namespace bug, and
the git repo is updated.
Thanks for the bug report!
Arnold