From nobody Sun Dec 18 07:23:18 2022 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4NZZ7W1h3Tz1GkXh; Sun, 18 Dec 2022 07:23:19 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4NZZ7W15gTz4MSP; Sun, 18 Dec 2022 07:23:19 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1671348199; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=OXaBJq4ItYUkuoBwrNCSaCMC0nTZwUDp4NpPPvL5Ydo=; b=GNRmQ71xMMffb5wHyGyyCsVoRhXP5PxmUW5oZZLnD/WOf/F20yl/NssLF4bRNVzITjcLik x/Hao79xipwWsc0l7X8jxS6gys1IN28PxDBRc2z2kG36YmHLx8ztKqRfbP1tsyW8n96NUB fSFYSq1d2mwvzSUXdaJ31t5uwZ6V79EBqRzKJ/OjrvJyxVAD4N2C0XtFf2b80bekDakKx+ QLP/pPxJnGCRfN2x4a7//9GSFkMok+5l06bXrqN1VtRP5o/uMHf3iw7OqgPeAWYRRe9c1w 1yFncTDQ+DCT8LpT0DnWvOnT2jjfaj+mLj9qmXdoCdgNJRF4H6YljCUeEFUFmA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1671348199; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=OXaBJq4ItYUkuoBwrNCSaCMC0nTZwUDp4NpPPvL5Ydo=; b=XW6+CiQW1uHfyWfNO72RJ7fdHYaxjS3f3Jt0wpq/C7TDbM6OGQNt16wAms3HmWDQNS+0Zc iY+SKgP/vcsUAb/hKSAaSZyZyHk+EqEhHKz8lJaHFuZHQdlSCR8IpvBBvLj8ljWzKq5OS5 K7Lyz+5wr5wKBCasS7PqXpNoWa3bQnwI6a/INsJ/l9uQuzeepB6my7tuJkyPjAX5lvJlXI N/FjxTJ+uClg1Glv+ElawqfoY8K9z5bXE2JRWRdCjUwoM/9jS6N/Mn2+BcTMu8zy6rHooO Cgw2/aahRX0rt9RI9UdbMZpLIlKHCnf219oKSR6kv34NjuA4qAhe0CH+TRS1ew== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1671348199; a=rsa-sha256; cv=none; b=iZFAZje4c+af/RwaT+f4xee97Eaa+KvkMxUx6KotgT45V9GPdl+fGmW2tjPnPIc3DvJIZM YoEH360IJNCrviPEvBkILfZP+pkQai2XOQNGK3+nnozMJwojF+wi3VE1zVGj16v2XrtchR UNYFIDphknS/p2byoeDrqtBU3Ua0775Rcl1zuN8F567JIxuunabu1gZlTRy1IInWEyjpzC 3W5OmvcFJqGhnLWBsY7jfldIUhvusg2Yi3gMaKu+aXFr2y34zMA3rYw+EIJAxucHKc7yru pBQWzSmUPGAWf7RE39BP4XbANwnAaGZyocrLtA2/h7yTOL4SiWCan+zMxAXDuQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4NZZ7W09wzz1Mfb; Sun, 18 Dec 2022 07:23:19 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 2BI7NIYn018169; Sun, 18 Dec 2022 07:23:18 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2BI7NI8W018168; Sun, 18 Dec 2022 07:23:18 GMT (envelope-from git) Date: Sun, 18 Dec 2022 07:23:18 GMT Message-Id: <202212180723.2BI7NI8W018168@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Gordon Bergling Subject: git: cf7fe60e63bb - main - grep.1: Add an ENVIRONMENT section List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: gbe X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: cf7fe60e63bb8c44d929490ff9c74eb94dde8af7 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N 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 AuthorDate: 2022-12-18 07:22:24 +0000 Commit: Gordon Bergling 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