[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
grep branch, master, updated. v2.21-21-gbeff607
From: |
Paul Eggert |
Subject: |
grep branch, master, updated. v2.21-21-gbeff607 |
Date: |
Wed, 11 Mar 2015 18:15:13 +0000 |
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "grep".
The branch, master has been updated
via beff6077b16bb0546ca8f705b011bc0b57f8d14f (commit)
from 5f8579d37290a67359f54f020092635f33228e5f (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://git.savannah.gnu.org/cgit/grep.git/commit/?id=beff6077b16bb0546ca8f705b011bc0b57f8d14f
commit beff6077b16bb0546ca8f705b011bc0b57f8d14f
Author: Paul Eggert <address@hidden>
Date: Wed Mar 11 11:14:51 2015 -0700
doc: give a script wrapper example
* doc/grep.texi (Environment Variables): Give an example of a
wrapper script, as an alternative to using GREP_OPTIONS.
Fixes: bug#19998
diff --git a/doc/grep.texi b/doc/grep.texi
index 18a1102..e3495bb 100644
--- a/doc/grep.texi
+++ b/doc/grep.texi
@@ -838,6 +838,15 @@ explicit options.
As this causes problems when writing portable scripts, this feature
will be removed in a future release of @command{grep}, and @command{grep}
warns if it is used. Please use an alias or script instead.
+For example, if @command{grep} is in the directory @samp{/usr/bin} you
+can prepend @file{$HOME/bin} to your @env{PATH} and create an
+executable script @file{$HOME/bin/grep} containing the following:
+
address@hidden
+#! /bin/sh
+export PATH=/usr/bin
+exec grep --color=auto --devices=skip "$@@"
address@hidden example
@item GREP_COLOR
@vindex GREP_COLOR @r{environment variable}
-----------------------------------------------------------------------
Summary of changes:
doc/grep.texi | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
hooks/post-receive
--
grep
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- grep branch, master, updated. v2.21-21-gbeff607,
Paul Eggert <=