I think the usage of `grep` is a bit mistaken. `\w` is a literal
replacement for `[_[:alnum:]]`, and `\W` is for inverting that, so if
you enclose it again in some brackets, it doesn't work anymore. You
probably want something more like this:
❯ grep -Re '\Wlog\W' /tmp/test2
if ($this->_touchOnly) //log if touchOnly
only log the output of the controller if $silent
if (window.console) console.log(data);
** Changed in: grep (Ubuntu)
Status: Confirmed => Invalid
--
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