From: Nick Bowler Date: Sun, 3 Dec 2023 05:52:53 +0000 (-0500) Subject: gen-options.awk: Don't pass ERE to split(). X-Git-Url: https://git.draconx.ca/gitweb/dxcommon.git/commitdiff_plain/c2851601e2026f36593e985d302def59eba26c17 gen-options.awk: Don't pass ERE to split(). Strange behaviour is observed on ULTRIX 4.5 nawk when passing a literal ERE as the fs argument to the split function. There is no problem passing an equivalent string instead. --- diff --git a/scripts/gen-options.awk b/scripts/gen-options.awk index 98b7c17..450f85c 100755 --- a/scripts/gen-options.awk +++ b/scripts/gen-options.awk @@ -181,7 +181,7 @@ $0 ~ /^-/ { # packed form is not possible w/ actions has_actions = 1; - n = split(work, a, /,[ \t]*/) + n = split(work, a, ",[ \t]*") if (n == 2) { flag = substr(a[1], 2) ", " substr(a[2], 1, length(a[2])-1) } else if (n == 1) {