Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 24 Feb 2018 05:08:03 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-doc@FreeBSD.org
Subject:   [Bug 226112] awk(1) man page unclear about field separator, FS
Message-ID:  <bug-226112-9-DqgU4MYJmt@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-226112-9@https.bugs.freebsd.org/bugzilla/>
References:  <bug-226112-9@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

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

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

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

  A branch is one=E2=80=A1 or more pieces, concatenated.
  A piece is an atom possibly followed by a single=E2=80=A1 =E2=80=98*=E2=
=80=99, =E2=80=98+=E2=80=99, =E2=80=98?=E2=80=99, or
     bound.
  An atom is ... , or a single character ...


Consider:

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


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

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

--=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-9-DqgU4MYJmt>