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
}
# set
} else if (match($0, re["constant"], m)) {
if (m[1] == target) {
output(m[1], "constant")
} else if (match($0, re["constant"])) {
matched = extract($0, "constant")
if (matched == target) {
output(matched, "constant")
} else {
reset()
}
} else if (match($0, re["variable"], m)) {
if (m[1] == target) {
output(m[1], "variable")
} else if (match($0, re["variable"])) {
matched = extract($0, "variable")
if (matched == target) {
output(matched, "variable")
} else {
reset()
}