|
From: | wagnerdm |
Subject: | wc -l doesn't count partial lines |
Date: | Sun, 25 Jan 2009 11:15:26 -0500 |
User-agent: | Internet Messaging Program (IMP) H3 (4.1.3) |
% echo foo >test && echo -n bar >>test && wc -l test 1 Actually, you can even see it in a smaller case: % echo -n foo >test && wc -l testBut as an edge case, this one is actually slightly less likely to make people mad! I could almost see an argument for "0" being the right answer here; nevertheless, the first example seems clearly wrong to me.
~d
[Prev in Thread] | Current Thread | [Next in Thread] |