Removed coloring restriction for interactive shells

Resolves: rhbz#1034631
This commit is contained in:
Jaroslav Škarvada 2013-11-26 16:56:53 +01:00
parent 9e737f2845
commit d1d59d992d
2 changed files with 5 additions and 4 deletions

View File

@ -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

View File

@ -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@redhat.com> - 2.15-2
- Removed coloring restriction for interactive shells
Resolves: rhbz#1034631
* Tue Oct 29 2013 Jaroslav Škarvada <jskarvad@redhat.com> - 2.15-1
- New version
Resolves: rhbz#1023698