Bug 58052

Summary: (solaris only) grep menu: egrep doesn't support '-H'
Product: [Applications] kdevelop Reporter: Daniel Franke <franke.daniel>
Component: generalAssignee: KDevelop Developers <kdevelop-devel>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Solaris   
Latest Commit: Version Fixed In:

Description Daniel Franke 2003-05-03 12:58:27 UTC
Version:           3.0.0a4 (using KDE 3.1.1)
Installed from:    compiled sources
Compiler:          gcc version 3.2.2
OS:          SunOS (sun4u) release 5.8

my Solaris version: 5.8
no version number of 'egrep' avaiable

Kdevelop:
> find <where> | grep -v "SCCS/" | grep -v "CVS/" | xargs egrep -H -n -e '<what>'

> egrep: illegal option -- H
> usage: egrep [ -bchilnsv ] [ -e exp ] [ -f file ] [ strings ] [ file ] ...

Linux man page 'egrep':
       -H, --with-filename
              Print the filename for each match.

       -h, --no-filename
              Suppress the prefixing of filenames on output  when
              multiple files are searched.

Solaris man page 'egrep':
    -h    Suppress printing of filenames when searching multiple
           files.

There isn't any option to remove the '-H' ??
Comment 1 Jens Dagerbo 2003-05-03 18:14:49 UTC
Annoyingly we need the "-H" option not to be buggy with GNU grep. :( 
 
Attempted hotfix by preprocessor switch. Please reopen if it fails.