]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
wc vs. POSIXLY_CORRECT
authorJim Meyering <jim@meyering.net>
Tue, 20 Jul 1999 08:03:49 +0000 (08:03 +0000)
committerJim Meyering <jim@meyering.net>
Tue, 20 Jul 1999 08:03:49 +0000 (08:03 +0000)
doc/textutils.texi

index 9e25362c1eaa054e0a2a180f1802675cff4ba914..95c7b238a8eb82a1d311b9a0670caac5630caf1b 100644 (file)
@@ -1799,6 +1799,11 @@ given as an argument, it prints the file name following the counts.  If
 more than one @var{file} is given, @code{wc} prints a final line
 containing the cumulative counts, with the file name @file{total}.  The
 counts are printed in this order: newlines, words, bytes.
+By default, each count is output right-justified in a 7-byte field with
+one space between fields so that the numbers and file names line up nicely
+in columns.  However, POSIX requires that there be exactly one space
+separating columns.  You can make @code{wc} use the POSIX-mandated
+output format by setting the @env{POSIXLY_CORRECT} environment variable.
 
 By default, @code{wc} prints all three counts.  Options can specify
 that only certain counts be printed.  Options do not undo others