I've discovered a little annoyance with the line iterator. If I have a file with the contents "a\nb\n" and runs
cat test | pike -e "foreach(Stdio.stdin->line_iterator();; string x) write(x);"
I get the output
ab
but if I run the same code with the file content "a\nb" I get
a
as output. Is it a bug or just a misfeature?