Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: wc and leading spaces



On 2011-08-22 19:53:38 -0400, TJ Luoma wrote:
> Can anyone explain why 'wc' adds leading spaces to its output? ^1

There are different implementations (including historical).
But a POSIX implementation mustn't add spaces. See:

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

(which also mentions the System V wc).

-- 
Vincent Lefèvre <vincent@xxxxxxxxxx> - 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)



Messages sorted by: Reverse Date, Date, Thread, Author