From c2851601e2026f36593e985d302def59eba26c17 Mon Sep 17 00:00:00 2001 From: Nick Bowler Date: Sun, 3 Dec 2023 00:52:53 -0500 Subject: [PATCH] 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. --- scripts/gen-options.awk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- 2.43.2