commit 5ce6a6a1224101ce5b0dfec1544a98c94d233ae0
parent 875642368c5aa42036480b48622a46483dd349be
Author: Jan Pobříslo <ccx@te2000.cz>
Date: Mon, 18 Jul 2022 00:37:33 +0200
Change quoting for busybox awk compatibility (also simplifies the expression).
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/bin/aat.awk b/bin/aat.awk
@@ -158,8 +158,8 @@ function call_macro(name, args, file_old) {
else if(name == "filename"){
tok_type=T_AWK
args = filename
- while(match(args, /[^/]+\/..\//) != 0) {
- gsub(/[^/]+\/..\//, "", args)
+ while(match(args, "[^/]+/../") != 0) {
+ gsub("[^/]+/../", "", args)
}
gsub(/["\\]/, "\\&", args)
token("filename = \"" args "\"\n")