I usually find I missed something so figured I'd check with y'all before filing a bug report on this. I used sed(1) to look for unprintable chars in text files on FreeBSD version 11 using the following:
which worked fine. File test.txt is a random block of text which I added the characters
Installed FreeBSD XXXXX 12.2-RELEASE FreeBSD 12.2-RELEASE r366954 GENERIC i386 and sed(1) started failing thus:
Release notes didn't say anything about regex in sed(1).
Did I miss a compliance modification regarding hex constants and/or regex?
test.txt attached
sed -n '/[^\x00-\x7F]/p' test.txt
which worked fine. File test.txt is a random block of text which I added the characters
\x80\x92
with vi. GNU sed works as expected, finds the "bad" line. Also tried re-compiling sed(1) from the source tree and got the same "error".Installed FreeBSD XXXXX 12.2-RELEASE FreeBSD 12.2-RELEASE r366954 GENERIC i386 and sed(1) started failing thus:
Code:
sed: 1: "/[^\x00-\x7F]/p": RE error: brackets ([ ]) not balanced
Did I miss a compliance modification regarding hex constants and/or regex?
test.txt attached