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

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Thu Feb 22 10:48:56 UTC 2018


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=226112

            Bug ID: 226112
           Summary: awk(1) man page unclear about field separator, FS
           Product: Documentation
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Documentation
          Assignee: freebsd-doc at FreeBSD.org
          Reporter: jamie at catflap.org

Created attachment 190888
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=190888&action=edit
patch for usr.bin/awk/awk.1 to clarify the use of FS

I realise that awk is a contributed package, but the man page for it has been
pulled in from OpenBSD, and has since been locally modified:
https://svnweb.freebsd.org/base/head/usr.bin/awk/awk.1?view=log

Anyway, the man page assumes that apart from the exceptions mentioned, the FS
is a regular expression. This is not the case for a single character - A single
character FS is considered literal.

Attached patch clarifies this. Note that the man page for gawk is correct on
the subject.

Cheers

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


More information about the freebsd-doc mailing list