bin/164139: [bsdgrep] remove duplicate line from usage

Yuri Pankov yuri.pankov at gmail.com
Sun Jan 15 14:30:13 UTC 2012


>Number:         164139
>Category:       bin
>Synopsis:       [bsdgrep] remove duplicate line from usage
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Jan 15 14:30:12 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     Yuri Pankov
>Release:        FreeBSD 10.0-CURRENT amd64
>Organization:
>Environment:
System: FreeBSD sirius.xvoid.org 10.0-CURRENT FreeBSD 10.0-CURRENT #1 r229702: Fri Jan 6 19:49:41 MSK 2012 yuri at sirius.xvoid.org:/usr/obj/data/src/freebsd/head/sys/GENERIC amd64
>Description:
bsdgrep outputs duplicate lines in usage output:

$ bsdgrep --help
usage: bsdgrep [-abcDEFGHhIiJLlmnOoPqRSsUVvwxZ] [-A num] [-B num] [-C[num]]
        [-e pattern] [-f file] [--binary-files=value] [--color=when]
        [-e pattern] [-f file] [--binary-files=value] [--color=when]
        [--context[=num]] [--directories=action] [--label] [--line-buffered]
        [--null] [pattern] [file ...]

>How-To-Repeat:
>Fix:
--- grep.diff begins here ---
Index: usr.bin/grep/grep.c
===================================================================
--- usr.bin/grep/grep.c	(revision 230135)
+++ usr.bin/grep/grep.c	(working copy)
@@ -158,7 +158,6 @@
 {
 	fprintf(stderr, getstr(4), getprogname());
 	fprintf(stderr, "%s", getstr(5));
-	fprintf(stderr, "%s", getstr(5));
 	fprintf(stderr, "%s", getstr(6));
 	fprintf(stderr, "%s", getstr(7));
 	exit(2);
--- grep.diff ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-bugs mailing list