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/>
index | next in thread | previous in thread | raw e-mail
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=226112 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‡ 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.help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-226112-9-DqgU4MYJmt>
