Project

General

Profile

Bug #3759

egrep(1) and fgrep(1) -s flag does not hide -c output

Added by Albert Lee about 7 years ago. Updated over 6 years ago.

Status:
Resolved
Priority:
Low
Assignee:
Category:
cmd - userland programs
Start date:
2013-05-03
Due date:
% Done:

100%

Estimated time:
Difficulty:
Bite-size
Tags:
Gerrit CR:

Description

The legacy option -s in egrep(1) and fgrep(1) (which documented to behave the same as POSIX option -q instead of the inverse) should prevent all output on stdout (i.e., non-error messages) even if -c is used. This is not currently the case:

[trisk@monolith]% /usr/bin/fgrep -cs trisk /etc/passwd
1

The -q option should also be supported as an alias.

History

#1

Updated by Rich Lowe over 6 years ago

  • Tags deleted (needs-triage)
  • Status changed from New to Resolved

Resolved in 41599e9

Also available in: Atom PDF