tech-userlevel archive

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

wc(1) Output and POSIX


Looking at the POSIX man page [1] for wc(1) it seems to suggest that
its output should be of the form:

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

However, we seem to do something like:

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

(Notice the leading space)
Looking around, it seems other systems (FreeBSD, OpenBSD) also have
similar output. I am just curious about the reason for the difference
in the output, the CVS history tells that the output has always been
like this :-)



Home | Main Index | Thread Index | Old Index