bug-gawk
[Top][All Lists]
Advanced

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

Re: [bug-gawk] [Question] Gawk 5.0.1: INPLACE_SUFFIX compatibility


From: Andrew J. Schorr
Subject: Re: [bug-gawk] [Question] Gawk 5.0.1: INPLACE_SUFFIX compatibility
Date: Tue, 25 Jun 2019 09:39:46 -0400
User-agent: Mutt/1.5.21 (2010-09-15)

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



reply via email to

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