[grep] Removed coloring restriction for interactive shells
Jaroslav Škarvada
jskarvad at fedoraproject.org
Tue Nov 26 15:57:04 UTC 2013
commit d1d59d992d1f7463e194629d66ce513c5c53749e
Author: Jaroslav Škarvada <jskarvad at redhat.com>
Date: Tue Nov 26 16:56:53 2013 +0100
Removed coloring restriction for interactive shells
Resolves: rhbz#1034631
colorgrep.sh | 3 ---
grep.spec | 6 +++++-
2 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/colorgrep.sh b/colorgrep.sh
index 9b23d61..57f7aba 100644
--- a/colorgrep.sh
+++ b/colorgrep.sh
@@ -1,8 +1,5 @@
# color-grep initialization
-# Skip the rest for noninteractive shells.
-[ -z "$PS1" ] && return
-
if [ -r /etc/GREP_COLORS ]; then
grep -qi "^COLOR.*none" /etc/GREP_COLORS >/dev/null 2>/dev/null && return
fi
diff --git a/grep.spec b/grep.spec
index fe9fdbc..391ed0e 100644
--- a/grep.spec
+++ b/grep.spec
@@ -3,7 +3,7 @@
Summary: Pattern matching utilities
Name: grep
Version: 2.15
-Release: 1%{?dist}
+Release: 2%{?dist}
License: GPLv3+
Group: Applications/Text
Source: ftp://ftp.gnu.org/pub/gnu/grep/grep-%{version}.tar.xz
@@ -85,6 +85,10 @@ fi
%{_mandir}/*/*
%changelog
+* Tue Nov 26 2013 Jaroslav Škarvada <jskarvad at redhat.com> - 2.15-2
+- Removed coloring restriction for interactive shells
+ Resolves: rhbz#1034631
+
* Tue Oct 29 2013 Jaroslav Škarvada <jskarvad at redhat.com> - 2.15-1
- New version
Resolves: rhbz#1023698
More information about the scm-commits
mailing list