I'd vote for bug. Quite a common one where regexps are used too.
/ Peter Lundqvist (disjunkt)
Previous text:
2002-12-30 01:14: Subject: stdin->line_iterator
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?
/ Martin Nilsson (bygger parser