Email List: Xaustin-review-lX
[All Lists]

Defect in XCU grep

To: yyyyyyyyyyyyyyy@xxxxxxxxxxxxx
Subject: Defect in XCU grep
From: Don Cragun <yyy@xxxxxxxxxxxxxxxxxxx>
Date: Fri, 19 Apr 2002 09:35:04 -0700 (PDT)
@ Page 495 Line 19060,19061-19063 Section grep EXAMPLES Editorial [Sun-dwc-1]

Problem:

Defect code :  1. Error

The examples using grep's -F option do not match the normative
description of the -F option.  (The normative text matches historical
practice; the examples do not.)  The -F option looks for fixed strings
anywhere on a line not regular expressions with alternation as shown in
the example on P495, L19060 and does not perform alternation as
suggested on P495, L19063.

Action:

To get the effect indicated on P495, L19058, change:
        grep -F 'abc|def'
on P495, L19060 to:
        grep -F 'abc
        def'

To get the effect indicated on P495, L19061, change:
        grep -F -x 'abc|def'
on P495, L19063 to:
        grep -F -x 'abc
        def'
        

<Prev in Thread] Current Thread [Next in Thread>