[erlang-questions] tab-expandable modules in the shell

Ulf Wiger (TN/EAB) ulf.wiger@REDACTED
Wed Apr 16 20:24:38 CEST 2008


Alexander Wagner skrev:
> Hi,
> I have a potentially silly Question about tab-expand in the erlang shell:
> Which Modules are expandable?

As far as I know, all the loaded ones.

In your example, you will only be able to expand the modules that are 
always loaded.

Note also that only a core set of modules are loaded automatically. The 
other ones are loaded on-demand. You can, if you want to, use the flag 
-mode embedded to make sure that all modules in the boot script are 
loaded at startup:

$ erl -boot start_clean
Erlang (BEAM) emulator version 5.5.5.5 [async-threads:0] [hipe] 
[kernel-poll:false]

Eshell V5.5.5.5  (abort with ^G)
1>
application               application_controller    application_master 

beam_lib                  c                         code 

code_aux                  code_server               dict 

edlin                     edlin_expand              erl_distribution 

erl_eval                  erl_internal              erl_lint 

erl_parse                 erl_prim_loader           erl_scan 

erlang                    error_handler             error_logger 

error_logger_tty_h        ets                       eval_bits 

file                      file_io_server            file_server 

filename                  gb_sets                   gb_trees 

gen                       gen_event                 gen_server 

global                    global_group              group 

heart                     hipe_unified_loader       inet 

inet_config               inet_db                   inet_gethost_native 

inet_parse                inet_udp                  init 

io                        io_lib                    io_lib_format 

kernel                    kernel_config             lists 

net_kernel                orddict                   ordsets 

os                        otp_internal              otp_ring0 

packages                  prim_file                 prim_inet 

proc_lib                  proplists                 ram_file 

rpc                       sets                      shell 

supervisor                supervisor_bridge         sys 

user_drv                  user_sup
1>
BREAK: (a)bort (c)ontinue (p)roc info (i)nfo (l)oaded
        (v)ersion (k)ill (D)b-tables (d)istribution
a
$ erl -boot start_sasl
Erlang (BEAM) emulator version 5.5.5.5 [async-threads:0] [hipe] 
[kernel-poll:false]


=PROGRESS REPORT==== 16-Apr-2008::20:21:06 ===
...
Eshell V5.5.5.5  (abort with ^G)
1>
alarm_handler             application 
application_controller
application_master        beam_lib                  c 

calendar                  code                      code_aux 

code_server               dict                      edlin 

edlin_expand              erl_distribution          erl_eval 

erl_internal              erl_lint                  erl_parse 

erl_prim_loader           erl_scan                  erlang 

error_handler             error_logger              error_logger_tty_h 

ets                       eval_bits                 file 

file_io_server            file_server               filename 

gb_sets                   gb_trees                  gen 

gen_event                 gen_server                global 

global_group              group                     heart 

hipe_unified_loader       inet                      inet_config 

inet_db                   inet_gethost_native       inet_parse 

inet_udp                  init                      io 

io_lib                    io_lib_format             io_lib_pretty 

kernel                    kernel_config             lists 

net_kernel                orddict                   ordsets 

os                        otp_internal              otp_ring0 

overload                  packages                  prim_file 

prim_inet                 proc_lib                  proplists 

ram_file                  release_handler           rpc 

sasl                      sasl_report               sasl_report_tty_h 

sets                      shell                     supervisor 

supervisor_bridge         sys                       user_drv 

user_sup
1>
BREAK: (a)bort (c)ontinue (p)roc info (i)nfo (l)oaded
        (v)ersion (k)ill (D)b-tables (d)istribution
a
$ erl -boot start_sasl -mode embedded
Erlang (BEAM) emulator version 5.5.5.5 [async-threads:0] [hipe] 
[kernel-poll:false]


=PROGRESS REPORT==== 16-Apr-2008::20:23:38 ===
...
Eshell V5.5.5.5  (abort with ^G)
1>
alarm_handler             application 
application_controller
application_master        application_starter       auth 

base64                    beam_lib                  c 

calendar                  code                      code_aux 

code_server               dets                      dets_server 

dets_sup                  dets_utils                dets_v8 

dets_v9                   dict                      digraph 

digraph_utils             disk_log                  disk_log_1 

disk_log_server           disk_log_sup              dist_ac 

dist_util                 edlin                     edlin_expand 

epp                       erl_bits                  erl_boot_server 

erl_compile               erl_ddll                  erl_distribution 

erl_epmd                  erl_eval                  erl_expand_records 

erl_internal              erl_lint                  erl_parse 

erl_posix_msg             erl_pp                    erl_prim_loader 

erl_reply                 erl_scan                  erl_tar 

erlang                    erlsrv                    error_handler 

error_logger              error_logger_file_h       error_logger_tty_h 

erts_debug                escript                   ets 

eval_bits                 file                      file_io_server 

file_server               file_sorter               filelib 

filename                  format_lib_supp           gb_sets 

gb_trees                  gen                       gen_event 

gen_fsm                   gen_sctp                  gen_server 

gen_tcp                   gen_udp                   global 

global_group              global_search             group 

heart                     hipe_unified_loader       inet 

inet6_tcp                 inet6_tcp_dist            inet6_udp 

inet_config               inet_db                   inet_dns 

inet_gethost_native       inet_hosts                inet_parse 

inet_res                  inet_sctp                 inet_tcp 

inet_tcp_dist             inet_udp                  init 

io                        io_lib                    io_lib_format 

io_lib_fread              io_lib_pretty             kernel 

kernel_config             lib                       lists 

log_mf_h                  math                      misc_supp 

ms_transform              net                       net_adm 

net_kernel                orddict                   ordsets 

os                        otp_internal              otp_ring0 

overload                  packages                  pg 

pg2                       pool                      prim_file 

prim_inet                 proc_lib                  proplists 

qlc                       qlc_pt                    queue 

ram_file                  random                    rb 

rb_format_supp            regexp                    release_handler 

release_handler_1         rpc                       sasl 

sasl_report               sasl_report_file_h        sasl_report_tty_h 

seq_trace                 sets                      shell 

shell_default             slave                     sofs 

string                    supervisor                supervisor_bridge 

sys                       systools                  systools_lib 

systools_make             systools_rc               systools_relup 

timer                     user                      user_drv 

user_sup                  win32reg                  wrap_log_reader 

zip                       zlib
1>

BR,
Ulf W



More information about the erlang-questions mailing list