Erlang shell常用命令
来源:互联网 发布:c语言输出单引号 编辑:程序博客网 时间:2024/05/22 09:02
Shell Commands
- b()
Prints the current variable bindings.
- f()
Removes all variable bindings.
- f(X)
Removes the binding of variable X.
- h()
Prints the history list.
- history(N)
Sets the number of previous commands to keep in the history list to N. The previous number is returned. The default number is 20.
- results(N)
Sets the number of results from previous commands to keep in the history list to N. The previous number is returned. The default number is 20.
- e(N)
Repeats the command N, if N is positive. If it is negative, the Nth previous command is repeated (i.e., e(-1) repeats the previous command).
- v(N)
Uses the return value of the command N in the current command, if N is positive. If it is negative, the return value of the Nth previous command is used (i.e., v(-1) uses the value of the previous command).
- help()
Evaluates shell_default:help().
- c(File)
Evaluates shell_default:c(File). This compiles and loads code in File and purges old versions of code, if necessary. Assumes that the file and module names are the same.
- catch_exception(Bool)
Sets the exception handling of the evaluator process. The previous exception handling is returned. The default (false) is to kill the evaluator process when an exception occurs, which causes the shell to create a new evaluator process. When the exception handling is set to true the evaluator process lives on which means that for instance ports and ETS tables as well as processes linked to the evaluator process survive the exception.
- rd(RecordName, RecordDefinition)
Defines a record in the shell. RecordName is an atom and RecordDefinition lists the field names and the default values. Usually record definitions are made known to the shell by use of the rr commands described below, but sometimes it is handy to define records on the fly.
- rf()
Removes all record definitions, then reads record definitions from the modules shell_default and user_default (if loaded). Returns the names of the records defined.
- rf(RecordNames)
Removes selected record definitions. RecordNames is a record name or a list of record names. Use '_' to remove all record definitions.
- rl()
Prints all record definitions.
- rl(RecordNames)
Prints selected record definitions. RecordNames is a record name or a list of record names.
- rp(Term)
Prints a term using the record definitions known to the shell. All of Term is printed; the depth is not limited as is the case when a return value is printed.
- rr(Module)
Reads record definitions from a module's BEAM file. If there are no record definitions in the BEAM file, the source file is located and read instead. Returns the names of the record definitions read. Module is an atom.
- rr(Wildcard)
Reads record definitions from files. Existing definitions of any of the record names read are replaced. Wildcard is a wildcard string as defined in filelib(3) but not an atom.
- rr(WildcardOrModule, RecordNames)
Reads record definitions from files but discards record names not mentioned in RecordNames (a record name or a list of record names).
- rr(WildcardOrModule, RecordNames, Options)
Reads record definitions from files. The compiler options {i, Dir}, {d, Macro}, and {d, Macro, Value} are recognized and used for setting up the include path and macro definitions. Use '_' as value of RecordNames to read all record definitions.
- Erlang shell常用命令
- [Erlang 0044] Erlang Shell History
- [集]erlang常用命令收集
- erlang常用命令收集
- Erlang shell debug调试
- Erlang Shell命令总结
- erlang shell 命令
- erlang 调用shell 命令
- erlang shell 命令
- Erlang shell快捷键
- [Erlang 0027] Using Record in Erlang Shell
- [Erlang 0051] Using ETS in Erlang Shell
- [Erlang 0076] Erlang Shell一个怪问题
- [Erlang 0083] All about Erlang Shell
- shell常用命令
- shell 常用命令
- shell 常用命令
- shell常用命令
- php5学习笔记之正则表达式
- 高斯分布(正态分布)
- zz from 人人 ---学术资源搜索google篇
- 互相学习一下别人的博客,还可以。
- [SQL Server]2008版本的bcp,bulk insert命令不支持UTF8文件.2005版支持.
- Erlang shell常用命令
- windows创建文本文件默认为ANSI编码,读取文件乱码解决~!
- 提示信息
- 进程和线程的区别、进程线程的通讯+posix多线程函数
- 简单内存泄漏检测方法
- 可接收输入的下拉框
- 可接收输入的下拉框
- Eclipse 3.6 Helios + Maven Setup
- java Thread 图片循环切换