* zishrink.awk (process_input_line): Simplify, and port to AIX 7.1 awk which does not allow ‘next’ statements in functions. --- zishrink.awk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zishrink.awk b/zishrink.awk index 2c05a8d..02c883a 100644 --- a/zishrink.awk +++ b/zishrink.awk @@ -46,12 +46,12 @@ function process_input_line(line, field, end, i, n, startdef) sub(/^Zone /, "Z ", line) # SystemV rules are not needed. - if (line ~ /^R SystemV /) next + if (line ~ /^R SystemV /) return # Replace FooAsia rules with the same rules without "Asia", as they # are duplicates. if (match(line, /[^ ]Asia /)) { - if (line ~ /^R /) next + if (line ~ /^R /) return line = substr(line, 1, RSTART) substr(line, RSTART + 5) } -- 2.7.4