Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 20 Jul 2021 02:12:49 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 226112] awk(1) man page unclear about field separator, FS
Message-ID:  <bug-226112-227-i0cx6ayU6n@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-226112-227@https.bugs.freebsd.org/bugzilla/>
References:  <bug-226112-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=3D226112

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 nul=
l,
     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 aft=
er
waiting a week for feedback.

--=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-226112-227-i0cx6ayU6n>