mawk/=
All checks were successful
/ job (push) Successful in 2m56s

This commit is contained in:
Marc Beninca 2025-07-13 23:46:47 +02:00
parent 44944f394f
commit a500200be0
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

View file

@ -179,15 +179,17 @@ BEGIN {
match_command = 1 match_command = 1
} }
# set # set
} else if (match($0, re["constant"], m)) { } else if (match($0, re["constant"])) {
if (m[1] == target) { matched = extract($0, "constant")
output(m[1], "constant") if (matched == target) {
output(matched, "constant")
} else { } else {
reset() reset()
} }
} else if (match($0, re["variable"], m)) { } else if (match($0, re["variable"])) {
if (m[1] == target) { matched = extract($0, "variable")
output(m[1], "variable") if (matched == target) {
output(matched, "variable")
} else { } else {
reset() reset()
} }