Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1103259 - undocumented option --fixed-regexp
undocumented option --fixed-regexp
Status: CLOSED ERRATA
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: grep (Show other bugs)
7.0
Unspecified Unspecified
medium Severity unspecified
: rc
: ---
Assigned To: Jaroslav Škarvada
Jan Kepler
Eva Majorsinova
: Patch, Regression
Depends On:
Blocks: 1205796 1103270
  Show dependency treegraph
 
Reported: 2014-05-30 10:32 EDT by Martin Frodl
Modified: 2016-01-31 21:24 EST (History)
5 users (show)

See Also:
Fixed In Version: grep-2.20-2.el7
Doc Type: Bug Fix
Doc Text:
Information on '--fixed-regexp' option added to man page The '--fixed-regexp' option is obsolete and was not mentioned in the manual page. This created an inconsistency between the manual page and the built-in help of grep. The missing option has been added to the manual page with a note saying it is obsolete and should not be used. Now, the content of the manual page is consistent with the built-in help.
Story Points: ---
Clone Of:
: 1103270 (view as bug list)
Environment:
Last Closed: 2015-11-19 01:55:54 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2015:2111 normal SHIPPED_LIVE Low: grep security and bug fix update 2015-11-19 03:18:28 EST

  None (edit)
Description Martin Frodl 2014-05-30 10:32:43 EDT
Description of problem:

The synonymous -F and --fixed-strings command-line options are used to interpret the pattern as a list of fixed strings, separated by newlines, any of which is to be matched. This is correctly mentioned both on the man page and in the usage message. Apart from these, however, the option --fixed-regexp appears to serve quite the same purpose, despite it not being documented anywhere.

$ echo 'studying' | grep -F 'dying'
studying
$ echo 'studying' | grep --fixed-strings 'dying'
studying
$ echo 'studying' | grep --fixed-regexp 'dying'
studying

Inasmuch as I could tell, this was probably the only undocumented option synonymous to -F. It does not work with an arbitrary string starting with the "--fixed-" prefix:

$ echo 'studying' | grep --fixed-fence 'dying'
grep: unrecognized option '--fixed-fence'
Usage: grep [OPTION]... PATTERN [FILE]...
Try 'grep --help' for more information.

To fix this bug, the --fixed-regexp command-line option should be either included in the documentation or wholly removed.


Version-Release number of selected component (if applicable):
grep-2.16-1.el7.x86_64


How reproducible:
always
Comment 11 errata-xmlrpc 2015-11-19 01:55:54 EST
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHSA-2015-2111.html

Note You need to log in before you can comment on or make changes to this bug.