bug-gawk
[Top][All Lists]
Advanced

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

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


From: Jakub Martisko
Subject: [bug-gawk] [Question] Gawk 5.0.1: INPLACE_SUFFIX compatibility
Date: Tue, 25 Jun 2019 12:02:20 +0200
User-agent: NeoMutt/20180716

Hello,

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?

Thanks,
Jakub

P.S. Thanks for all the work and effort required for bringing us a new
major release.



reply via email to

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