Bug 4345 - grep should support -x option
Summary: grep should support -x option
Status: RESOLVED FIXED
Alias: None
Product: Busybox
Classification: Unclassified
Component: Standard Compliance (show other bugs)
Version: unspecified
Hardware: PC Linux
: P5 normal
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-21 17:17 UTC by Cheer Xiao
Modified: 2014-02-27 12:36 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Cheer Xiao 2011-10-21 17:17:19 UTC
From "man 1p grep":

-x     Consider  only  input  lines that use all characters in the line
       excluding the terminating <newline> to  match  an  entire  fixed
       string or regular expression to be matching lines.

-x is specified by POSIX. Please add support.
Comment 1 Denys Vlasenko 2014-02-27 12:36:46 UTC
Fixed in git:

commit cd09e81520b7917adebcffd7c361671f913325eb
Author: Natanael Copa <ncopa@alpinelinux.org>
Date:   Thu Feb 23 14:20:22 2012 +0000

    grep: support for -x, match whole line