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

Defect in XCU uniq

To: austin-review-l@xxxxxxxxxxxxx
Subject: Defect in XCU uniq
From: Geoff Clare <gwc@xxxxxxxxxxxxx>
Date: Fri, 29 Jun 2007 17:05:38 +0100
@ page 960 line 37131 section uniq objection [gwc uniq+newline]

Problem:

Defect code :  1. Error

The description of the uniq utility says that it compares "lines",
which by definition include the trailing newline.  This does not
match existing practice, which is to ignore the newline.
(This can make a difference when the -s and -f options are used.)

Action:

Append to the first paragraph:

    "The trailing <newline> of each line in the input shall be
    ignored when doing comparisons."

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