grep aliases in .bashrc prevent use of extra flags in Ubuntu
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have replicated David's tree from last post and executed all commands in the same order and my CLFS based system is getting different results
In fact, they are the expected results that the OP was looking for, I believe???
Found it. The include=exclude thing's a bug. And it's been fixed, at least in any distro that's up-to-date. Which of course doesn't include Debian, which is still using version 2.6.3.
I agree that exclusion of files that match your --include filter in the top-level directory is totally, completely bizarre. I assert once again this is NOT how grep behaves on other machines. I just performed this command on a CentOS 5 machine and the results included numerous php files in the top-level directory:
Code:
grep --include=*.php -irl 'adams' *
I can deal with typing a period instead of a wildcard every time, what's worrisome to me is that Ubuntu 10 is behaving differently than CentOS 5 (and various debian distros as well AFAIK).
Found it. The include=exclude thing's a bug. And it's been fixed, at least in any distro that's up-to-date. Which of course doesn't include Debian, which is still using version 2.6.3.
Nice work. Do you have to upgrade linux kernel to fix the bug or it some other library?
It's a bug in grep, so you simply need to upgrade grep.
2.6.3, and perhaps other 2.6 releases, show the problem. The newest version, 2.7, as well as 2.5.4 and before appear to be ok, according to the bug report.
If you can survive it, just wait for your distribution to do it. They'll get around to upgrading the package eventually. If you really need this feature right away, you'll have to download the source from gnu and compile it yourself.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.