[erlang-bugs] ioi:columns bug
Joe Armstrong
joearms@REDACTED
Wed May 29 15:02:26 CEST 2013
io:columns() does not work in a process spawned from the command line
-module(bug).
-compile(export_all).
test() ->
io:format("~p~n", [io:columns()]).
When I run this in a shell it works
2> c(bug).
{ok,bug}
3> bug:test().
{ok,132}
ok
But not from the command line
> erl -s bug test
Erlang R16B (erts-5.10.1) [source] [64-bit] [smp:4:4]
[async-threads:10] [hipe] [kernel-poll:false]
Eshell V5.10.1 (abort with ^G)
1> {error,enotsup}
Something is strange - the group leader of a process launched from the
command line is different to the shell group leader. But I can do io:format
from a command launched from the command line --- what's happening here?
/Joe
More information about the erlang-bugs
mailing list