[erlang-questions] Joe's book, ~/.erlang and Makefiles

Feng Yu <>
Sun May 10 14:10:18 CEST 2009

see start.script


c:erlangrc -> c:erlangrc([Home]) ->c:f_p_e([".",Home], ".erlang") ->
file:path_eval(P, F).

专注 高性能 容错 分布服务器的实现(erlang)

On Sun, May 10, 2009 at 9:05 AM, Andrew Thompson <> wrote:

> So, I've run into this problem twice now, and I'm wondering if there's a
> workaround that googling and grepping all the .erl files in the erlang
> distribution hasn't revealed.
> In Joe's book, he apparently has people put "io:format("Running
> Erlang~n")." in their ~/.erlang file to illustrate how to modify
> default behaviour. That's fine, but it seems that people forget to
> remove it later, so when they try to run a Makefile that does something
> like this:
> ERLANG_LIBDIR=`$ERLANG -noshell -eval 'io:format("~s/lib~n",
> [[code:lib_dir("erl_interface")]]).' -s erlang halt`
> it all goes rather wrong. I've managed to find the erlangrc() function
> in stdlib/src/c.erl but I can't figure out what is calling it. I wonder
> why ~/.erlang is even evaluated when running with -noshell but I can't
> find a way to bypass it in any case.
> Any ideas?
> Andrew
> _______________________________________________
> erlang-questions mailing list
> http://www.erlang.org/mailman/listinfo/erlang-questions
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20090510/0356dfd8/attachment.html>

More information about the erlang-questions mailing list