From 68d53c01b0b8e9a007a6a30158c19e34b2d2a34e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Gustavsson?= Date: Wed, 18 May 2016 15:53:35 +0200 Subject: Update STDLIB documentation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Language cleaned up by the technical writers xsipewe and tmanevik from Combitech. Proofreading and corrections by Björn Gustavsson and Hans Bolinder. --- lib/stdlib/doc/src/shell_default.xml | 38 ++++++++++++++++++++---------------- 1 file changed, 21 insertions(+), 17 deletions(-) (limited to 'lib/stdlib/doc/src/shell_default.xml') diff --git a/lib/stdlib/doc/src/shell_default.xml b/lib/stdlib/doc/src/shell_default.xml index 4a90b7d7cc..81c99bce10 100644 --- a/lib/stdlib/doc/src/shell_default.xml +++ b/lib/stdlib/doc/src/shell_default.xml @@ -32,25 +32,27 @@ Joe Armstrong 1996-09-09 A - shell_default.sgml + shell_default.xml shell_default - Customizing the Erlang Environment + Customizing the Erlang environment. -

The functions in shell_default are called when no module - name is given in a shell command. -

-

Consider the following shell dialogue:

+

The functions in this module are called when no module name is + specified in a shell command.

+ +

Consider the following shell dialog:

+
-1 > lists:reverse("abc").
+1> lists:reverse("abc").
 "cba"
-2 > c(foo).
-{ok, foo}    
-

In command one, the module lists is called. In command - two, no module name is specified. The shell searches the modules - user_default followed by shell_default for the - function foo/1. -

+2> c(foo). +{ok, foo} + +

In command one, module lists is + called. In command two, no module name is specified. The shell searches + module user_default followed by module shell_default for + function foo/1.

+

shell_default is intended for "system wide" customizations to the shell. user_default is intended for "local" or individual user customizations.

@@ -60,10 +62,12 @@ Hint

To add your own commands to the shell, create a module called user_default and add the commands you want. Then add the - following line as the first line in your .erlang file in your - home directory.

+ following line as the first line in your .erlang file in + your home directory.

+
-code:load_abs("$PATH/user_default").    
+code:load_abs("$PATH/user_default"). +

$PATH is the directory where your user_default module can be found.

-- cgit v1.2.3