[Top][All Lists]

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

Re: grep: -i option not working i cronjobs

From: J. W.Andersen, Falster System Teknik
Subject: Re: grep: -i option not working i cronjobs
Date: Wed, 10 Nov 2004 17:37:53 +0100
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.3) Gecko/20040910

Julian -

I took a look at the sources, and sad to say, I have to admit my inabillity to find out how the program really works - undoubtedly it has been written by some very bright people, and I obviously do not belong in that category - at least not anymore, and, compared to my own earlier C productions, I find it rather sparsely commented, so I think, it will be in everybodys best interrest, that I keep my dirty fingers out of it - I can probably only make things considerably worse.

The good news is, that I found a workaround: Use fgrep instead, that seems to work with exactly the same options - also in cronjobs. Maybe you can use that info in your grep troubleshooting, at least on a comparative basis. However, I could kick myself, that I did not try that days ago.

Thanks again for your time and good work with GNU.



Julian Foad wrote:

J. W.Andersen, Falster System Teknik wrote:

I have retrieved SuSE's source pack for the actual grep. As my C skille are pretty rusty (have not used them much for the past 10 years ), I am somewhat uncertain as to where to begin and where to end. Could you maybe give a hint as to which of the source modules are of primary interrest for this issue ?

Look for "only_matching" and "match_icase" in src/grep.c.

If you are willing to help fix this, please go to the GNU Savannah project home page for Grep, at https://savannah.gnu.org/projects/grep/ and check out the latest source code from CVS, and in the bug and patch databases there you will find things like a previous attempt to fix it, and some tests for this behaviour.

We will be glad to discuss your ideas and progress on this mailing list.

- Julian

reply via email to

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