[Bug 214783] [patch] awk(1) POSIX character classes never match backslash
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Wed Nov 23 14:00:33 UTC 2016
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=214783
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 at FreeBSD.org
Reporter: martin at lispworks.com
Keywords: patch
Created attachment 177332
--> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=177332&action=edit
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).
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-bugs
mailing list