On Thu, Sep 19, 2019 at 7:17 PM Peng Yu <address@hidden> wrote:
>
> 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
This is help-bash. Try asking in a GNU Awk mailing list.