help-bash
[Top][All Lists]
Advanced

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

Re: [Help-bash] IGNORECASE and split()


From: Eduardo Bustamante
Subject: Re: [Help-bash] IGNORECASE and split()
Date: Thu, 19 Sep 2019 20:04:52 -0700

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.



reply via email to

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