HomeFreeBSD

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

Description

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)

Details

Provenance
impAuthored on Jul 20 2021, 4:47 AM
Parents
rG97de70c68dd7: awk: Remove last markings we have on awk
Branches
Unknown
Tags
Unknown