Public bug reported:
Binary package hint: coreutils
vnix$ grep -c -o fnord <<HERE
> fnord fnord fnord
> HERE
1
One could expect the result to be three, with -o and -c, not one. Some
non-GNU greps allegedly work that way. As it is, the combination of -c
-o is rather useless.
If it cannot be fixed, then perhaps a warning about the uselessness of
this combination of options should be printed.
vnix$ lsb_release -rd
Description: Ubuntu 8.04.1
Release: 8.04
vnix$ dpkg -l coreutils | tail -1
ii coreutils 6.10-3ubuntu2 The GNU core utilities
** Affects: coreutils (Ubuntu)
Importance: Undecided
Status: New
--
grep -c -o does not print count of occurrences
https://bugs.launchpad.net/bugs/277528
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs