bin/171725: awk(1) does not support word-boundary metacharacters
Devin Teske
devin.teske at fisglobal.com
Fri Oct 12 16:30:02 UTC 2012
The following reply was made to PR bin/171725; it has been noted by GNATS.
From: Devin Teske <devin.teske at fisglobal.com>
To: <bug-followup at FreeBSD.org>, <dteske at FreeBSD.org>
Cc:
Subject: Re: bin/171725: awk(1) does not support word-boundary metacharacters
Date: Fri, 12 Oct 2012 09:24:00 -0700
Enhancing awk(1), we should add support for "\<" and "\>" (not "[[:<:]]" an=
d "[[:>:]]"). The reason we should support the former syntax is due to the =
awk(1) manual which says (rather sparsely) "regular expressions are as-in e=
grep(1)".
If we are to rectify the functionality-gap between the awk(1) manual and aw=
k(1) functionality, we should either fix the awk(1) manual (for example, to=
say "regular expressions are as-in egrep(1) except for \< and \>") or we s=
hould (preferred) add support for \< and \> so that the manual becomes accu=
rate without modification.
That is to say, that awk(1) should _not_ be enhanced to support [[:<:]] and=
[[:>:]] as this would only further add to the functionality-gap between wh=
at is documented and what is expected.
--=20
Devin
_____________
The information contained in this message is proprietary and/or confidentia=
l. If you are not the intended recipient, please: (i) delete the message an=
d all copies; (ii) do not disclose, distribute or use the message in any ma=
nner; and (iii) notify the sender immediately. In addition, please be aware=
that any message addressed to our domain is subject to archiving and revie=
w by persons other than the intended recipient. Thank you.
More information about the freebsd-bugs
mailing list