piuccio / cowsay

cowsay is a configurable talking cow
Other
1.13k stars 158 forks source link

Fix #28 by stripping the trailing new line #29

Closed doug2k1 closed 6 years ago

doug2k1 commented 6 years ago

According to get-stdin author, the trailing new line produced by echo is expected.

He recommends using strip-eof to remove it, which is what I did in this PR.

Edit: If my understanding is correct, the Perl version uses chomp for the same effect.

Thanks!