I have a file, angles.txt, containing the UTF-8 bytes for:
«x»
Now, if I run perl -CS -n -e 'if (/\x{ab}x\x{bb}/) { print $& }' <angles.txt, I get the expected match. However, running ack '\x{ab}x\x{bb}' angles.txt or ack '\x{ab}x\x{bb}' <angles.txt results in no output.
I have a file,
angles.txt
, containing the UTF-8 bytes for:Now, if I run
perl -CS -n -e 'if (/\x{ab}x\x{bb}/) { print $& }' <angles.txt
, I get the expected match. However, runningack '\x{ab}x\x{bb}' angles.txt
orack '\x{ab}x\x{bb}' <angles.txt
results in no output.This is with perl 5.16.2 and ack 2.12.