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

Wayne Sierke <w...@au.dyndns.ws> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |w...@au.dyndns.ws

--- Comment #1 from Wayne Sierke <w...@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.
_______________________________________________
freebsd-doc@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-doc
To unsubscribe, send any mail to "freebsd-doc-unsubscr...@freebsd.org"

Reply via email to