I checked again, and it crashes again.<br>I'm using R11B4 and some more info on my config:<br><br>bash> cat /proc/version<br>Linux version 2.6.15-28-386 (buildd@terranova) (gcc version 4.0.3 (Ubuntu 4.0.3-1ubuntu5)) #1 PREEMPT Thu May 10 09:45:43 UTC 2007
<br>bash> erl -version<br>Erlang (ASYNC_THREADS,HIPE) (BEAM) emulator version 5.5.4<br><br><br><div><span class="gmail_quote">On 7/19/07, <b class="gmail_sendername">Torbjorn Tornkvist</b> <<a href="mailto:tobbe@tornkvist.org">
tobbe@tornkvist.org</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Ludovic Coquelle wrote:<br>> Sorry for posting again this question, but I think there is something
<br>> important to know and I can't figure out what.<br>><br>> I run a command printing simple text on default io device (stdout):<br>> bash> erl -noshell -eval "lists:foreach(fun(N) -> io:format(\"~w~n\",
<br>> [N]) end, lists:seq(1,5)), erlang:halt()."<br>> 1<br>> 2<br>> 3<br>> 4<br>> 5<br>><br>> That's the behaviour I expected.<br>> But if I try to pipe the result, erlang crash:<br>> bash> erl -noshell -eval "lists:foreach(fun(N) -> io:format(\"~w~n\",
<br>> [N]) end, lists:seq(1,5)), erlang:halt()." | head -n 3<br>> 1<br>> 2<br>> 3<br><br>I can't reproduce this behaviour.<br>I'm running R11B2 on Debian and the above works perfectly.<br>What OS are you running this on?
<br><br>--Tobbe<br><br>> Crash dump was written to: erl_crash.dump<br>> init terminating in do_boot ()<br>><br>> What's happening?<br>> Is it a normal behaviour?<br>><br><br>_______________________________________________
<br>erlang-questions mailing list<br><a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br><a href="http://www.erlang.org/mailman/listinfo/erlang-questions">http://www.erlang.org/mailman/listinfo/erlang-questions
</a><br></blockquote></div><br>