bug-textutils
[Top][All Lists]
Advanced

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

V2.0 uniq -sN skips N-1 chars


From: Geoff Whale
Subject: V2.0 uniq -sN skips N-1 chars
Date: Wed, 22 Aug 2001 09:16:54 +1000 (EST)

Hi,
    V2.0 of uniq incorrectly skips one fewer characters than that
specified on the command line. For example, uniq -s25 with data file

123456789012345678901
1234567890123456789012
12345678901234567890123
1234567890123456789012345
123456789012345678901234
12345678901234567890123
1234567890123456789012
123456789012345678901

produces
123456789012345678901
1234567890123456789012345
123456789012345678901234

instead of
123456789012345678901

which is the correct behaviour exhibited by V1.22.

While you're at it, in keeping with GNU's philosophy of not placing
arbitrary restrictions on tools, why not remove the anachronistic
prohibition on -s0 and -w0? These are perfectly well-defined parameters.

Cheers
                        -- Geoff Whale
                           School of Computer Science & Engineering
                           University of New South Wales
                           Sydney, Australia
--------------------
V2.0 test site:
Linux wagner 2.4.7-server #1 SMP Sat Aug 11 17:13:08 EST 2001 i686 unknown
uniq (GNU textutils) 2.0
Written by Richard Stallman and David MacKenzie.

Copyright (C) 1999 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE.
--------------------
V1.22 test site:
SunOS pianola 5.6 Generic_105182-23 i86pc i386 i86pc
uniq (GNU textutils) 1.22




reply via email to

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