From 0cb1db09674cdf1413da696462f161142a98ec3b Mon Sep 17 00:00:00 2001 From: Torsten Raudssus Date: Tue, 13 Jan 2015 18:43:28 +0100 Subject: [PATCH] genlink: properly escape regexp special characters Fixes compatibility with mawk, as used on debian and ubuntu now. --- scripts/genlink.awk | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/genlink.awk b/scripts/genlink.awk index c5d32d46..d2e03cf7 100644 --- a/scripts/genlink.awk +++ b/scripts/genlink.awk @@ -31,9 +31,9 @@ BEGIN { gsub(/\r$/,""); tmp = "^"$1"$"; - gsub(/?/, ".", tmp); - gsub(/*/, ".*", tmp); - gsub(/+/, ".+", tmp); + gsub(/\?/, ".", tmp); + gsub(/\*/, ".*", tmp); + gsub(/\+/, ".+", tmp); tolower(tmp); if (PAT ~ tmp) {