Project

General

Profile

Bug #8860

Example in grep(1) is incorrect

Added by Alexander Pyhalov over 1 year ago. Updated over 1 year ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Start date:
2017-11-25
Due date:
% Done:

100%

Estimated time:
Difficulty:
Bite-size
Tags:
needs-triage

Description

There is the following example in grep(1):

Both of the following commands print all lines matching exactly abc or
       def:

         example% /usr/xpg4/bin/grep -E '^abc$ ^def$'
         example% /usr/xpg4/bin/grep -F -x 'abc def'

It's incorrect, patterns should be splitted by a new line.

History

#1

Updated by Electric Monk over 1 year ago

  • % Done changed from 0 to 100
  • Status changed from New to Closed

git commit d2d52addd50254d1b7c318c6784172d8d7de20c6

commit  d2d52addd50254d1b7c318c6784172d8d7de20c6
Author: Alexander Pyhalov <apyhalov@gmail.com>
Date:   2018-01-09T19:12:32.000Z

    8858 /usr/bin/grep doesn't support -E option
    4580 /usr/bin/grep can't handle multibyte characters
    8929 8868 tests are not delivered with system/test/utiltest
    8860 Example in grep(1) is incorrect
    Reviewed by: Peter Tribble <peter.tribble@gmail.com>
    Reviewed by: Toomas Soome <tsoome@me.com>
    Reviewed by: Yuri Pankov <yuripv@gmx.com>
    Approved by: Robert Mustacchi <rm@joyent.com>

Also available in: Atom PDF