[Bug 241441] inconsistency between allowed empty regex for `awk -F` and split()

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 30 Jul 2021 23:35:04 +0000
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=241441

--- Comment #4 from commit-hook_at_FreeBSD.org ---
A commit in branch stable/13 references this bug:

URL:
https://cgit.FreeBSD.org/src/commit/?id=f4ed53c6f5254edcc28c34cbe67d698bd93cb05e

commit f4ed53c6f5254edcc28c34cbe67d698bd93cb05e
Author:     Warner Losh <imp_at_FreeBSD.org>
AuthorDate: 2021-07-20 04:47:30 +0000
Commit:     Warner Losh <imp_at_FreeBSD.org>
CommitDate: 2021-07-30 23:02:13 +0000

    awk: Make -F '' and -v FS="" behave the same

    IEEE Std 1003.1-2008 mandates that -F str be treated the same as -v
    FS=str. For a null string, this was not the case. Since awk(1) documents
    that a null string for FS has a specific behavior, make -F '' behave
    consistently with -v FS="".

    PR:                     241441
    Upstream issue:         https://github.com/onetrueawk/awk/issues/127
    Upstream pull request:  https://github.com/onetrueawk/awk/pull/128
    MFC After:              2 weeks
    Sponsored by:           Netflix

    (cherry picked from commit a2e3e1187309f9404940b61ca49a93bd0536559d)

 contrib/one-true-awk/main.c | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

-- 
You are receiving this mail because:
You are the assignee for the bug.
Received on Fri Jul 30 2021 - 23:35:04 UTC

Original text of this message