[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [bug #32501] Manual page does not include a warning for GREP_OPTIONS
From: |
Reuben Thomas |
Subject: |
Re: [bug #32501] Manual page does not include a warning for GREP_OPTIONS |
Date: |
Mon, 28 Feb 2011 11:43:22 +0000 |
I agree with the subject of the bug report; what I didn't agree with
was the specific suggestion of warning about --color, but it's true
that currently there's no warning in the man page. Something like
(adding a paragraph to the GREP_OPTIONS section):
You should consider the effect of GREP_OPTIONS on other programs that
use grep: avoid options like `-P' which will change their behavior.
(Shell aliases are a better way to include such options in a default
set, rather like rgrep.) Programs calling grep should unset
GREP_OPTIONS to avoid unintended behavior (and security holes).
If we can get an agreed wording, I'll put together a patch for the man
page and texinfo.
--
http://rrt.sc3d.org