bug-gawk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug-gawk] IGNORECASE and split()


From: Peng Yu
Subject: [bug-gawk] IGNORECASE and split()
Date: Thu, 19 Sep 2019 22:55:38 -0500

Hi,

IGNORECASE changes the behavior of split() inconsistently. Why is it
so? Should it be consistent?

awk -v IGNORECASE=1 -e 'BEGIN { n = split("abc", a, "B"); print n }' #
I'd expect the result be 2 here.
1
awk -v IGNORECASE=1 -e 'BEGIN { n = split("abc", a, /B/); print n }'
2

--
Regards,
Peng



reply via email to

[Prev in Thread] Current Thread [Next in Thread]