Bug 4345

Summary: grep should support -x option
Product: Busybox Reporter: Cheer Xiao <xiaqqaix>
Component: Standard ComplianceAssignee: unassigned
Status: RESOLVED FIXED    
Severity: normal CC: busybox-cvs
Priority: P5    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Host: Target:
Build:

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