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

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sat Feb 24 05:08:05 UTC 2018


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

Wayne Sierke <ws at au.dyndns.ws> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ws at au.dyndns.ws

--- Comment #1 from Wayne Sierke <ws at au.dyndns.ws> ---
A RE can be a literal of one or more characters. From re_format(7):

  A branch is one‡ or more pieces, concatenated.
  A piece is an atom possibly followed by a single‡ ‘*’, ‘+’, ‘?’, or
     bound.
  An atom is ... , or a single character ...


Consider:

  % echo foobar | awk -F o -v OFS=X '{$1=$1;print}'
  fXXbar
  % echo foobar | awk -F oo -v OFS=X '{$1=$1;print}'
  fXbar
  %


I don't think there is a need to separately reference single-character literal
REs.

(And unless I'm missing something I think the gawk man page is misguided for
doing so.)

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


More information about the freebsd-doc mailing list