bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Found bug in 'grep' manpage and infopage


From: Karl-Heinz Zimmer
Subject: Found bug in 'grep' manpage and infopage
Date: Fri, 1 Nov 2002 12:44:47 +0100
User-agent: KMail/1.4.7

The following was found using: grep (GNU grep) 2.4.2

Hi,

using the great GNU grep tool and preparing some general documentation to
be published to help Linux users use their onboard information sources
I just found a little bug in both the 'grep' manpage and the 'grep' info:

       -C [NUM], -NUM, --context[=NUM]
              Print NUM lines (default 2) of output context.

This is wrong.

While me calling "grep -A 3 sometext somefile" works fine
     and calling "grep -A3  sometext somefile" works fine
     and calling "grep -B 3 sometext somefile" works fine
     and calling "grep -B3  sometext somefile" works fine
the following
does *not* work: "grep -C 3 sometext somefile" works fine
but this WORKS:  "grep -C3  sometext somefile" works fine

So the manpage and info text should say:

       -C[NUM], -NUM, --context[=NUM]
              Print NUM lines (default 2) of output context.

Removing the space between "-C" and "[NUM]" removes the bug.  :-)

Karl-Heinz
-- 
Karl-Heinz Zimmer, Senior Software Engineer, Klarälvdalens Datakonsult AB
<mailto:address@hidden>            <mailto:address@hidden>
 "For every complex problem there is an
  answer that is clear, simple, and wrong."  H. L. Mencken, 1880 - 1956




reply via email to

[Prev in Thread] Current Thread [Next in Thread]