Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 24 Jul 2021 15:09:43 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 241441] inconsistency between allowed empty regex for `awk -F` and split()
Message-ID:  <bug-241441-227-cwDx6QBk4U@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-241441-227@https.bugs.freebsd.org/bugzilla/>
References:  <bug-241441-227@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D241441

--- Comment #3 from commit-hook@FreeBSD.org ---
A commit in branch main references this bug:

URL:
https://cgit.FreeBSD.org/src/commit/?id=3Da2e3e1187309f9404940b61ca49a93bd0=
536559d

commit a2e3e1187309f9404940b61ca49a93bd0536559d
Author:     Warner Losh <imp@FreeBSD.org>
AuthorDate: 2021-07-20 04:47:30 +0000
Commit:     Warner Losh <imp@FreeBSD.org>
CommitDate: 2021-07-24 15:08:16 +0000

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

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

    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

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

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-241441-227-cwDx6QBk4U>