GNU bug report logs - #9346
wc does not conform to POSIX (additional spaces)

Previous Next

Package: coreutils;

Reported by: Vincent Lefevre <vincent <at> vinc17.net>

Date: Tue, 23 Aug 2011 00:42:01 UTC

Severity: normal

Done: Pádraig Brady <P <at> draigBrady.com>

Bug is archived. No further changes may be made.

Full log


Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Vincent Lefevre <vincent <at> vinc17.net>
To: bug-coreutils <at> gnu.org
Subject: wc does not conform to POSIX (additional spaces)
Date: Tue, 23 Aug 2011 02:39:09 +0200
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 <vincent <at> vinc17.net> - 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)




This bug report was last modified 13 years and 334 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.