Project

General

Profile

Actions

Bug #3759

closed

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

Added by Albert Lee over 8 years ago. Updated over 8 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.

Actions #1

Updated by Rich Lowe over 8 years ago

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

Resolved in 41599e9

Actions

Also available in: Atom PDF