[erlang-bugs] code:lib_dir/1 fails with ERL_LIBS set
Vance Shipley
vances@REDACTED
Wed Jan 29 15:27:32 CET 2014
There appears to be a bug where code:lib_dir/1 fails with applications
appearing in an extra lib directory declared with ERL_LIBS. The following
shows the problem:
$ ERL_LIBS=/Users/vances/foo erl
Erlang R16B03 (erts-5.10.4) [source] [64-bit] [smp:8:8] [async-threads:10] [hipe] [kernel-poll:false]
Eshell V5.10.4 (abort with ^G)
1> application:load(bar).
ok
2> code:which(bar).
"/Users/vances/foo/ebin/bar.beam"
3> code:where_is_file("bar.app").
"/Users/vances/foo/ebin/bar.app"
4> code:lib_dir(bar).
{error,bad_name}
--
-Vance
More information about the erlang-bugs
mailing list