On Wed, Jan 12, 2005 at 02:54:05PM +0000, Matthew Wilcox wrote:
> The trouble is that to fix this would require not just looking at the
> manpage for grep to work out which variables to unset, but also the
> manpages for every other tool that we use, looking at each variable the
> user *might* set, and seeing if it could be harmful.
>
> I don't think this is a reasonable thing for us to do.
No, I agree- that is overkill. Some of the people I have discussed this
with would rather see GREP_OPTIONS dropped from GNU grep ;)
> > I note that --colour=auto makes grep selectively colour and I presume it
> > only does it for interactive terminals: apache builds ok with this set.
>
> Yes, --color=auto is a much more reasonable approach.
The grep docs say that you can use 'always', 'never', 'auto', but don't
actually explain what they are (all but auto of course are fairly
self-explanatory). Perhaps this could be a reassign minor doc bug on
grep? Something I'd work on patching myself. (must remember to see where
debian stands with the gnu documentation these days, could be letting
myself into a bigger job than I realise ;))
On Wed, Jan 12, 2005 at 02:54:05PM +0000, Matthew Wilcox wrote:
> The trouble is that to fix this would require not just looking at the
> manpage for grep to work out which variables to unset, but also the
> manpages for every other tool that we use, looking at each variable the
> user *might* set, and seeing if it could be harmful.
>
> I don't think this is a reasonable thing for us to do.
No, I agree- that is overkill. Some of the people I have discussed this
with would rather see GREP_OPTIONS dropped from GNU grep ;)
> > I note that --colour=auto makes grep selectively colour and I presume it
> > only does it for interactive terminals: apache builds ok with this set.
>
> Yes, --color=auto is a much more reasonable approach.
The grep docs say that you can use 'always', 'never', 'auto', but don't
actually explain what they are (all but auto of course are fairly
self-explanatory). Perhaps this could be a reassign minor doc bug on
grep? Something I'd work on patching myself. (must remember to see where
debian stands with the gnu documentation these days, could be letting
myself into a bigger job than I realise ;))