Date: Wed, 23 Nov 2016 14:00:33 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 214783] [patch] awk(1) POSIX character classes never match backslash Message-ID: <bug-214783-8@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D214783 Bug ID: 214783 Summary: [patch] awk(1) POSIX character classes never match backslash Product: Base System Version: 10.1-RELEASE Hardware: Any OS: Any Status: New Keywords: patch Severity: Affects Only Me Priority: --- Component: bin Assignee: freebsd-bugs@FreeBSD.org Reporter: martin@lispworks.com Keywords: patch Created attachment 177332 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D177332&action= =3Dedit Patch to escape chars in POSIX character classes The commands below should print "yes" but on FreeBSD they print nothing: echo '\' | awk '/[[:print:]]/ { print "yes" }' The attached patch fixes this (and also a theoretical problem with matching hyphen). --=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-214783-8>