RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1103259 - undocumented option --fixed-regexp
Summary: undocumented option --fixed-regexp
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: grep
Version: 7.0
Hardware: Unspecified
OS: Unspecified
medium
unspecified
Target Milestone: rc
: ---
Assignee: Jaroslav Škarvada
QA Contact: Jan Kepler
Eva Majorsinova
URL:
Whiteboard:
Depends On:
Blocks: 1103270 1205796
TreeView+ depends on / blocked
 
Reported: 2014-05-30 14:32 UTC by Martin Frodl
Modified: 2016-02-01 02:24 UTC (History)
5 users (show)

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.
Clone Of:
: 1103270 (view as bug list)
Environment:
Last Closed: 2015-11-19 06:55:54 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2015:2111 0 normal SHIPPED_LIVE Low: grep security and bug fix update 2015-11-19 08:18:28 UTC

Description Martin Frodl 2014-05-30 14:32:43 UTC
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 06:55:54 UTC
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.