bug-grep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: The bug in the Grep Command


From: Jim Meyering
Subject: Re: The bug in the Grep Command
Date: Mon, 06 Aug 2012 13:53:32 +0200

address@hidden wrote:
> For example:
>
> grep -in "^$" < /etc/inittab
>
> or
> grep -in "^$" < /etc/X11/xorg.conf

Thanks again.

However, note that with that pattern or any other pattern containing
no alphabetic character, -i is useless.  It may even make sense for
grep to detect the contradiction and automatically ignore that option.
Omitting the -i will not only avoid the bug in older grep versions
[2.6..2.13], but it will make your grep command significantly more
efficient, since it will not have to perform case-conversion internally.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]