Bug 1034846

Summary: [RFE] If grep is colored, xz*grep should be as well
Product: [Fedora] Fedora Reporter: Cristian Ciupitu <cristian.ciupitu>
Component: xzAssignee: Pavel Raiskup <praiskup>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: unspecified    
Version: rawhideCC: a.badger, jskarvad, lkundrak, novyjindrich, praiskup
Target Milestone: ---Keywords: FutureFeature
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: 1034631 Environment:
Last Closed: 2014-08-26 08:18:40 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On: 1034631    
Bug Blocks: 1034839    

Description Cristian Ciupitu 2013-11-26 15:34:21 UTC
+++ This bug was initially created as a clone of Bug #1034631 +++

Description of problem:
The output of xzgrep, xzegrep and xzfgrep should be colored by default.

Version-Release number of selected component (if applicable):
xz-5.1.2-6alpha.fc20.x86_64

How reproducible:
Every time

Steps to Reproduce:
1. Run interactively one of the commands on a compressed file, e.g.:
	xz < /etc/fedora-release | xzgrep Fedora

Actual results:
No colored output.

Expected results:
Colored output.

Additional info:
This command:
	xz < /etc/fedora-release | xzgrep --color=auto Fedora
has colored output.

See original bug for details on how to implement this.

Comment 1 Pavel Raiskup 2014-08-26 08:18:40 UTC
This is committed now to Rawhide (f22):
http://pkgs.fedoraproject.org/cgit/xz.git/commit/?id=9907793ad89ae939e458a7

Christian, thanks for this RFE.