On Tue, Nov 3, 2015 at 8:35 PM, dan mclaughlin <[email protected]> wrote: > i was writing a script when i ran across this. > > $ echo "hello world" | wc > 1 2 12 > $ echo -n "hello world" | wc > 0 2 11 > > the following patch corrects this:
...but it's not a bug. wc's line count is required by POSIX to be a count of the number of newline characters in the involved input. Philip Guenther
