bug#24382: grep should support -l and -n together

2016-09-06 Thread Paul Eggert
On 09/06/2016 07:36 AM, Mathieu Jobin wrote: should you chose not to support this, then it should probably error out Hmm, well, as I understand it POSIX requires that -n be ignored if -l is also specified; see: http://pubs.opengroup.org/onlinepubs/9699919799/utilities/grep.html I suppose we

bug#24382: grep should support -l and -n together

2016-09-06 Thread Mathieu Jobin
I like using > grep -rn pattern dir a lot because it returns all the result with the line numbers I think its one of the most common use case of grep. recently I started using > grep -rl pattern dir only returning the list of files, without the content appended. I find that really useful but