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.
# packed form is not possible w/ actions
has_actions = 1;
# 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) {
if (n == 2) {
flag = substr(a[1], 2) ", " substr(a[2], 1, length(a[2])-1)
} else if (n == 1) {