[Bug 226112] awk(1) man page unclear about field separator, FS

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 20 Jul 2021 02:12:49 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=226112

Warner Losh <imp@FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Assignee|bugs@FreeBSD.org            |imp@FreeBSD.org
             Status|Open                        |In Progress
                 CC|                            |imp@FreeBSD.org

--- Comment #5 from Warner Losh <imp@FreeBSD.org> ---
This change isn't technically correct.

Space is special, and that's not documented.
What is done when a single character is not well documented.

     An input line is normally made up of fields separated by whitespace, or
     by the extended regular expression FS as described below.  The fields are
     denoted $1, $2, ..., while $0 refers to the entire line.  If FS is null,
     the input line is split into one field per character.  However, this
     behavior is unspecified in the IEEE Std 1003.1 ("POSIX.1") standard.  If
     FS is a single space, then leading and trailing blank and newline
     characters are skipped.  Fields are delimited by one or more blank or
     newline characters.  A blank character is a space or a tab.  If FS is a
     single character, other than space, fields are delimited by each single
     occurrence of that character.  The FS variable defaults to a single
     space.

is what I have in my tree to fix this paragraph. I'll commit it shortly after
waiting a week for feedback.

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