Running a build script for a 3rd party library and getting this awk error.
In rhel8 gawk 4.2.1 the follow executes without error:
version_num=stable/3.0
printf "3.0.4" | awk "/^${version_num/\//\\\/}/{print;}"
but in rhel7 gawk 4.0.2 you get:
awk: cmd. line:1: /^stable\\/3.0/{print;}
awk: cmd. line:1: ^ syntax error
I think maybe the /
before {print;}
is wrong, but it's only a guess and i'm not sure why it works on rhel8...the release notes for the intervening gawk versions didn't show anything that looked relevant.