[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Help-bash] IGNORECASE and split()
From: |
Peng Yu |
Subject: |
[Help-bash] IGNORECASE and split() |
Date: |
Thu, 19 Sep 2019 21:16:39 -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
- [Help-bash] IGNORECASE and split(),
Peng Yu <=