Bug 58052 - (solaris only) grep menu: egrep doesn't support '-H'
Summary: (solaris only) grep menu: egrep doesn't support '-H'
Status: RESOLVED FIXED
Alias: None
Product: kdevelop
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Solaris
: NOR normal
Target Milestone: ---
Assignee: KDevelop Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-05-03 12:58 UTC by Daniel Franke
Modified: 2003-05-03 18:14 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.