Date: Sun, 18 Dec 2022 07:23:18 GMT From: Gordon Bergling <gbe@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: cf7fe60e63bb - main - grep.1: Add an ENVIRONMENT section Message-ID: <202212180723.2BI7NI8W018168@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by gbe (doc committer): URL: https://cgit.FreeBSD.org/src/commit/?id=cf7fe60e63bb8c44d929490ff9c74eb94dde8af7 commit cf7fe60e63bb8c44d929490ff9c74eb94dde8af7 Author: Jose Luis Duran <jlduran@gmail.com> AuthorDate: 2022-12-18 07:22:24 +0000 Commit: Gordon Bergling <gbe@FreeBSD.org> CommitDate: 2022-12-18 07:22:24 +0000 grep.1: Add an ENVIRONMENT section Document the environment variables used by grep(1). Reviewed by: pauamma, kevans MFC after: 5 days Differential Revision: https://reviews.freebsd.org/D37726 --- usr.bin/grep/grep.1 | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/usr.bin/grep/grep.1 b/usr.bin/grep/grep.1 index 3168fbc45f7d..b30722bf6c7e 100644 --- a/usr.bin/grep/grep.1 +++ b/usr.bin/grep/grep.1 @@ -30,7 +30,7 @@ .\" .\" @(#)grep.1 8.3 (Berkeley) 4/18/94 .\" -.Dd November 10, 2021 +.Dd December 18, 2022 .Dt GREP 1 .Os .Sh NAME @@ -440,6 +440,22 @@ read from standard input. This includes both .Fl f and file arguments. +.Sh ENVIRONMENT +The following environment variables affect the execution of +.Nm : +.Bl -tag -width "GREP_OPTIONS" +.It Ev GREP_COLOR +This variable specifies the color used to highlight matched (non-empty) text. +.It Ev GREP_OPTIONS +This variable specifies default options +to be placed in front of any explicit options. +It may cause problems with portable scripts. +.It Ev TERM +This variable specifies the type name of the terminal, console or display-device +type to be used. +See +.Xr term 7 . +.El .Sh EXIT STATUS The .Nm grep
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202212180723.2BI7NI8W018168>