Thank you for that interesting test case. I think there is something else at play here, maybe some shell quirk.
Consider the following simplified test case. $ cat /tmp/LP1165536.txt 123 ABC abc !%$ $ grep [\w] /tmp/LP1165536.txt || echo "nothing found" # should match all three characters in lines 1-3 nothing found $ grep [^\w] /tmp/LP1165536.txt # matches all three characters on all four lines 123 ABC abc !%$ -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1165536 Title: grep doesn't handle \w correctly To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/grep/+bug/1165536/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
