I am sending you a patch to solve a 'problem' at the wc program.
   When used with -l option (to count the number of lines) the last
   line isn't counted.

It counts occurences of '\n' (i.e. newline).  So I guess that the
behaviour is correct.

   The problem is: if the input does not end with a newline "\n", this
   line is not counted.

Well, if it doesn't end with a newline (\n) then it isn't really a
line...

Cheers.


_______________________________________________
Bug-coreutils mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-coreutils

Reply via email to