bug-coreutils
[Top][All Lists]
Advanced

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

bug#9346: wc does not conform to POSIX (additional spaces)


From: Vincent Lefevre
Subject: bug#9346: wc does not conform to POSIX (additional spaces)
Date: Tue, 23 Aug 2011 02:39:09 +0200
User-agent: Mutt/1.5.21-6194-vl-r44775 (2011-07-13)

http://pubs.opengroup.org/onlinepubs/9699919799/utilities/wc.html
says:

  STDOUT

    By default, the standard output shall contain an entry for each
    input file of the form:

    "%d %d %d %s\n", <newlines>, <words>, <bytes>, <file>

But wc from GNU coreutils 8.12 adds spaces:

$ echo | wc
      1       0       1

Setting POSIXLY_CORRECT=1 doesn't even have any effect here.

-- 
Vincent Lefèvre <address@hidden> - Web: <http://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / Arénaire project (LIP, ENS-Lyon)





reply via email to

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