Index: shell/general_commands.rst
===================================================================
--- shell/general_commands.rst	(revision 3c29186a503f986a45ad76945119173973f511b1)
+++ shell/general_commands.rst	(revision a6b837e9b5949ba5583abb69b1ccd90e96bf42d6)
@@ -56,5 +56,5 @@
 **SYNOPSYS:**
 
-.. code:: c
+.. code:: shell
 
     help misc
@@ -80,5 +80,5 @@
 The following is an example of how to use ``alias``:
 
-.. code-block:: shell
+.. code:: shell
 
     SHLL [/] $ help
@@ -133,5 +133,5 @@
 **SYNOPSYS:**
 
-.. code:: c
+.. code:: shell
 
     alias oldCommand newCommand
@@ -147,17 +147,18 @@
 **NOTES:**
 
-NONE
+None.
 
 **EXAMPLES:**
 
 The following is an example of how to use ``alias``:
-.. code:: c
-
-    SHLL \[/] $ me
+
+.. code:: shell
+
+    SHLL [/] $ me
     shell:me command not found
-    SHLL \[/] $ alias whoami me
-    SHLL \[/] $ me
+    SHLL [/] $ alias whoami me
+    SHLL [/] $ me
     rtems
-    SHLL \[/] $ whoami
+    SHLL [/] $ whoami
     rtems
 
@@ -167,11 +168,11 @@
 .. index:: CONFIGURE_SHELL_COMMAND_ALIAS
 
-This command is included in the default shell command set.
-When building a custom command set, define``CONFIGURE_SHELL_COMMAND_ALIAS`` to have this
+This command is included in the default shell command set.  When building a
+custom command set, define ``CONFIGURE_SHELL_COMMAND_ALIAS`` to have this
 command included.
 
-This command can be excluded from the shell command set by
-defining ``CONFIGURE_SHELL_NO_COMMAND_ALIAS`` when all
-shell commands have been configured.
+This command can be excluded from the shell command set by defining
+``CONFIGURE_SHELL_NO_COMMAND_ALIAS`` when all shell commands have been
+configured.
 
 **PROGRAMMING INFORMATION:**
@@ -179,15 +180,16 @@
 .. index:: rtems_shell_rtems_main_alias
 
-The ``alias`` is implemented by a C language function
-which has the following prototype:
+The ``alias`` is implemented by a C language function which has the following
+prototype:
+
 .. code:: c
 
     int rtems_shell_rtems_main_alias(
-    int    argc,
-    char \**argv
+        int    argc,
+        char **argv
     );
 
-The configuration structure for the ``alias`` has the
-following prototype:
+The configuration structure for the ``alias`` has the following prototype:
+
 .. code:: c
 
@@ -200,5 +202,5 @@
 **SYNOPSYS:**
 
-.. code:: c
+.. code:: shell
 
     cmdls COMMAND...
@@ -219,7 +221,8 @@
 
 The following is an example of how to use ``cmdls``:
-.. code:: c
-
-    SHLL \[/] # cmdls help shutdown
+
+.. code:: shell
+
+    SHLL [/] # cmdls help shutdown
     r-xr-xr-x     0     0 help
     r-x------     0     0 shutdown
@@ -230,16 +233,16 @@
 .. index:: CONFIGURE_SHELL_COMMAND_CMDLS
 
-This command is included in the default shell command set.
-When building a custom command set, define``CONFIGURE_SHELL_COMMAND_CMDLS`` to have this
+This command is included in the default shell command set.  When building a
+custom command set, define ``CONFIGURE_SHELL_COMMAND_CMDLS`` to have this
 command included.
 
-This command can be excluded from the shell command set by
-defining ``CONFIGURE_SHELL_NO_COMMAND_CMDLS`` when all
-shell commands have been configured.
-
-**PROGRAMMING INFORMATION:**
-
-The configuration structure for the ``cmdls`` has the
-following prototype:
+This command can be excluded from the shell command set by defining
+``CONFIGURE_SHELL_NO_COMMAND_CMDLS`` when all shell commands have been
+configured.
+
+**PROGRAMMING INFORMATION:**
+
+The configuration structure for the ``cmdls`` has the following prototype:
+
 .. code:: c
 
@@ -252,7 +255,7 @@
 **SYNOPSYS:**
 
-.. code:: c
-
-    cmdchown \[OWNER][:\[GROUP]] COMMAND...
+.. code:: shell
+
+    cmdchown [OWNER][:[GROUP]] COMMAND...
 
 **DESCRIPTION:**
@@ -272,10 +275,11 @@
 
 The following is an example of how to use ``cmdchown``:
-.. code:: c
+
+.. code:: shell
 
     [/] # cmdls help
     r-xr-xr-x     0     0 help
-    \[/] # cmdchown 1:1 help
-    \[/] # cmdls help
+    [/] # cmdchown 1:1 help
+    [/] # cmdls help
     r--r--r--     1     1 help
 
@@ -285,16 +289,16 @@
 .. index:: CONFIGURE_SHELL_COMMAND_CMDCHOWN
 
-This command is included in the default shell command set.
-When building a custom command set, define``CONFIGURE_SHELL_COMMAND_CMDCHOWN`` to have this
+This command is included in the default shell command set.  When building a
+custom command set, define ``CONFIGURE_SHELL_COMMAND_CMDCHOWN`` to have this
 command included.
 
-This command can be excluded from the shell command set by
-defining ``CONFIGURE_SHELL_NO_COMMAND_CMDCHOWN`` when all
-shell commands have been configured.
-
-**PROGRAMMING INFORMATION:**
-
-The configuration structure for the ``cmdchown`` has the
-following prototype:
+This command can be excluded from the shell command set by defining
+``CONFIGURE_SHELL_NO_COMMAND_CMDCHOWN`` when all shell commands have been
+configured.
+
+**PROGRAMMING INFORMATION:**
+
+The configuration structure for the ``cmdchown`` has the following prototype:
+
 .. code:: c
 
@@ -307,5 +311,5 @@
 **SYNOPSYS:**
 
-.. code:: c
+.. code:: shell
 
     cmdchmod OCTAL-MODE COMMAND...
@@ -327,10 +331,11 @@
 
 The following is an example of how to use ``cmdchmod``:
-.. code:: c
+
+.. code:: shell
 
     [/] # cmdls help
     r-xr-xr-x     0     0 help
-    \[/] # cmdchmod 544 help
-    \[/] # cmdls help
+    [/] # cmdchmod 544 help
+    [/] # cmdls help
     r-xr--r--     0     0 help
 
@@ -340,16 +345,16 @@
 .. index:: CONFIGURE_SHELL_COMMAND_CMDCHMOD
 
-This command is included in the default shell command set.
-When building a custom command set, define``CONFIGURE_SHELL_COMMAND_CMDCHMOD`` to have this
+This command is included in the default shell command set.  When building a
+custom command set, define ``CONFIGURE_SHELL_COMMAND_CMDCHMOD`` to have this
 command included.
 
-This command can be excluded from the shell command set by
-defining ``CONFIGURE_SHELL_NO_COMMAND_CMDCHMOD`` when all
-shell commands have been configured.
-
-**PROGRAMMING INFORMATION:**
-
-The configuration structure for the ``cmdchmod`` has the
-following prototype:
+This command can be excluded from the shell command set by defining
+``CONFIGURE_SHELL_NO_COMMAND_CMDCHMOD`` when all shell commands have been
+configured.
+
+**PROGRAMMING INFORMATION:**
+
+The configuration structure for the ``cmdchmod`` has the following prototype:
+
 .. code:: c
 
@@ -362,5 +367,5 @@
 **SYNOPSYS:**
 
-.. code:: c
+.. code:: shell
 
     date
@@ -369,8 +374,7 @@
 **DESCRIPTION:**
 
-This command operates one of two modes.  When invoked with no
-arguments, it prints the current date and time.  When invoked
-with both ``date`` and ``time`` arguments, it sets the
-current time.
+This command operates one of two modes.  When invoked with no arguments, it
+prints the current date and time.  When invoked with both ``date`` and ``time``
+arguments, it sets the current time.
 
 The ``date`` is specified in ``YYYY-MM-DD`` format.
@@ -383,15 +387,16 @@
 **NOTES:**
 
-This comm
+None.
 
 **EXAMPLES:**
 
 The following is an example of how to use ``date``:
-.. code:: c
-
-    SHLL \[/] $ date
+
+.. code:: shell
+
+    SHLL [/] $ date
     Fri Jan  1 00:00:09 1988
-    SHLL \[/] $ date 2008-02-29 06:45:32
-    SHLL \[/] $ date
+    SHLL [/] $ date 2008-02-29 06:45:32
+    SHLL [/] $ date
     Fri Feb 29 06:45:35 2008
 
@@ -401,11 +406,11 @@
 .. index:: CONFIGURE_SHELL_COMMAND_DATE
 
-This command is included in the default shell command set.
-When building a custom command set, define``CONFIGURE_SHELL_COMMAND_DATE`` to have this
-command included.
-
-This command can be excluded from the shell command set by
-defining ``CONFIGURE_SHELL_NO_COMMAND_DATE`` when all
-shell commands have been configured.
+This command is included in the default shell command set.  When building a
+custom command set, define ``CONFIGURE_SHELL_COMMAND_DATE`` to have this command
+included.
+
+This command can be excluded from the shell command set by defining
+``CONFIGURE_SHELL_NO_COMMAND_DATE`` when all shell commands have been
+configured.
 
 **PROGRAMMING INFORMATION:**
@@ -413,15 +418,16 @@
 .. index:: rtems_shell_rtems_main_date
 
-The ``date`` is implemented by a C language function
-which has the following prototype:
+The ``date`` is implemented by a C language function which has the following
+prototype:
+
 .. code:: c
 
     int rtems_shell_rtems_main_date(
-    int    argc,
-    char \**argv
+        int    argc,
+        char **argv
     );
 
-The configuration structure for the ``date`` has the
-following prototype:
+The configuration structure for the ``date`` has the following prototype:
+
 .. code:: c
 
@@ -434,20 +440,19 @@
 **SYNOPSYS:**
 
-.. code:: c
-
-    echo \[-n | -e] args ...
-
-**DESCRIPTION:**
-
-echo prints its arguments on the standard output, separated by spaces.
-Unless the *-n* option is present, a newline is output following the
-arguments.  The *-e* option causes echo to treat the escape sequences
-specially, as described in the following paragraph.  The *-e* option is the
-default, and is provided solely for compatibility with other systems.
-Only one of the options *-n* and *-e* may be given.
-
-If any of the following sequences of characters is encountered during
-output, the sequence is not output.  Instead, the specified action is
-performed:
+.. code:: shell
+
+    echo [-n | -e] args ...
+
+**DESCRIPTION:**
+
+Echo prints its arguments on the standard output, separated by spaces.  Unless
+the *-n* option is present, a newline is output following the arguments.  The
+*-e* option causes echo to treat the escape sequences specially, as described
+in the following paragraph.  The *-e* option is the default, and is provided
+solely for compatibility with other systems.  Only one of the options *-n* and
+*-e* may be given.
+
+If any of the following sequences of characters is encountered during output,
+the sequence is not output.  Instead, the specified action is performed:
 
 *\\b*
@@ -455,7 +460,7 @@
 
 *\\c*
-    Subsequent output is suppressed.  This is normally used at the
-    end of the last argument to suppress the trailing newline that
-    echo would otherwise output.
+    Subsequent output is suppressed.  This is normally used at the end of the
+    last argument to suppress the trailing newline that echo would otherwise
+    output.
 
 *\\f*
@@ -475,6 +480,6 @@
 
 *\\0digits*
-    Output the character whose value is given by zero to three digits.
-    If there are zero digits, a nul character is output.
+    Output the character whose value is given by zero to three digits.  If
+    there are zero digits, a nul character is output.
 
 *\\\\*
@@ -487,18 +492,19 @@
 **NOTES:**
 
-The octal character escape mechanism (\\0digits) differs from the C lan-
-guage mechanism.
-
-There is no way to force ``echo`` to treat its arguments literally, rather
-than interpreting them as options and escape sequences.
+The octal character escape mechanism (\\0digits) differs from the C language
+mechanism.
+
+There is no way to force ``echo`` to treat its arguments literally, rather than
+interpreting them as options and escape sequences.
 
 **EXAMPLES:**
 
 The following is an example of how to use ``echo``:
-.. code:: c
-
-    SHLL \[/] $ echo a b c
+
+.. code:: shell
+
+    SHLL [/] $ echo a b c
     a b c
-    SHLL \[/] $ echo
+    SHLL [/] $ echo
 
 **CONFIGURATION:**
@@ -507,11 +513,11 @@
 .. index:: CONFIGURE_SHELL_COMMAND_ECHO
 
-This command is included in the default shell command set.
-When building a custom command set, define``CONFIGURE_SHELL_COMMAND_ECHO`` to have this
-command included.
-
-This command can be excluded from the shell command set by
-defining ``CONFIGURE_SHELL_NO_COMMAND_ECHO`` when all
-shell commands have been configured.
+This command is included in the default shell command set.  When building a
+custom command set, define ``CONFIGURE_SHELL_COMMAND_ECHO`` to have this command
+included.
+
+This command can be excluded from the shell command set by defining
+``CONFIGURE_SHELL_NO_COMMAND_ECHO`` when all shell commands have been
+configured.
 
 **PROGRAMMING INFORMATION:**
@@ -519,15 +525,16 @@
 .. index:: rtems_shell_rtems_main_echo
 
-The ``echo`` is implemented by a C language function
-which has the following prototype:
+The ``echo`` is implemented by a C language function which has the following
+prototype:
+
 .. code:: c
 
     int rtems_shell_rtems_main_echo(
-    int    argc,
-    char \**argv
+        int    argc,
+        char **argv
     );
 
-The configuration structure for the ``echo`` has the
-following prototype:
+The configuration structure for the ``echo`` has the following prototype:
+
 .. code:: c
 
@@ -536,6 +543,6 @@
 **ORIGIN:**
 
-The implementation and portions of the documentation for this
-command are from NetBSD 4.0.
+The implementation and portions of the documentation for this command are from
+NetBSD 4.0.
 
 sleep - delay for a specified amount of time
@@ -545,5 +552,5 @@
 **SYNOPSYS:**
 
-.. code:: c
+.. code:: shell
 
     sleep seconds
@@ -552,6 +559,6 @@
 **DESCRIPTION:**
 
-This command causes the task executing the shell to block
-for the specified number of ``seconds`` and ``nanoseconds``.
+This command causes the task executing the shell to block for the specified
+number of ``seconds`` and ``nanoseconds``.
 
 **EXIT STATUS:**
@@ -563,22 +570,21 @@
 This command is implemented using the ``nanosleep()`` method.
 
-The command line interface is similar to the ``sleep`` command
-found on POSIX systems but the addition of the ``nanoseconds``
-parameter allows fine grained delays in shell scripts without
-adding another command such as ``usleep``.
+The command line interface is similar to the ``sleep`` command found on POSIX
+systems but the addition of the ``nanoseconds`` parameter allows fine grained
+delays in shell scripts without adding another command such as ``usleep``.
 
 **EXAMPLES:**
 
 The following is an example of how to use ``sleep``:
-.. code:: c
-
-    SHLL \[/] $ sleep 10
-    SHLL \[/] $ sleep 0 5000000
-
-It is not clear from the above but there is a ten second
-pause after executing the first command before the prompt
-is printed.  The second command completes very quickly
-from a human perspective and there is no noticeable
-delay in the prompt being printed.
+
+.. code:: shell
+
+    SHLL [/] $ sleep 10
+    SHLL [/] $ sleep 0 5000000
+
+It is not clear from the above but there is a ten second pause after executing
+the first command before the prompt is printed.  The second command completes
+very quickly from a human perspective and there is no noticeable delay in the
+prompt being printed.
 
 **CONFIGURATION:**
@@ -587,11 +593,11 @@
 .. index:: CONFIGURE_SHELL_COMMAND_SLEEP
 
-This command is included in the default shell command set.
-When building a custom command set, define``CONFIGURE_SHELL_COMMAND_SLEEP`` to have this
+This command is included in the default shell command set.  When building a
+custom command set, define ``CONFIGURE_SHELL_COMMAND_SLEEP`` to have this
 command included.
 
-This command can be excluded from the shell command set by
-defining ``CONFIGURE_SHELL_NO_COMMAND_SLEEP`` when all
-shell commands have been configured.
+This command can be excluded from the shell command set by defining
+``CONFIGURE_SHELL_NO_COMMAND_SLEEP`` when all shell commands have been
+configured.
 
 **PROGRAMMING INFORMATION:**
@@ -599,15 +605,16 @@
 .. index:: rtems_shell_rtems_main_sleep
 
-The ``sleep`` is implemented by a C language function
-which has the following prototype:
+The ``sleep`` is implemented by a C language function which has the following
+prototype:
+
 .. code:: c
 
     int rtems_shell_rtems_main_sleep(
-    int    argc,
-    char \**argv
+        int    argc,
+        char **argv
     );
 
-The configuration structure for the ``sleep`` has the
-following prototype:
+The configuration structure for the ``sleep`` has the following prototype:
+
 .. code:: c
 
@@ -620,5 +627,5 @@
 **SYNOPSYS:**
 
-.. code:: c
+.. code:: shell
 
     id
@@ -626,7 +633,6 @@
 **DESCRIPTION:**
 
-This command prints the user identity.  This includes the user id
-(uid), group id (gid), effective user id (euid), and effective
-group id (egid).
+This command prints the user identity.  This includes the user id (uid), group
+id (gid), effective user id (euid), and effective group id (egid).
 
 **EXIT STATUS:**
@@ -637,6 +643,6 @@
 
 Remember there is only one POSIX process in a single processor RTEMS
-application. Each thread may have its own user identity and that
-identity is used by the filesystem to enforce permissions.
+application. Each thread may have its own user identity and that identity is
+used by the filesystem to enforce permissions.
 
 **EXAMPLES:**
@@ -644,14 +650,16 @@
 The first example of the ``id`` command is from a session logged
 in as the normal user ``rtems``:
-.. code:: c
-
-    SHLL \[/] # id
+
+.. code:: shell
+
+    SHLL [/] # id
     uid=1(rtems),gid=1(rtems),euid=1(rtems),egid=1(rtems)
 
-The second example of the ``id`` command is from a session logged
-in as the ``root`` user:
-.. code:: c
-
-    SHLL \[/] # id
+The second example of the ``id`` command is from a session logged in as the
+``root`` user:
+
+.. code:: shell
+
+    SHLL [/] # id
     uid=0(root),gid=0(root),euid=0(root),egid=0(root)
 
@@ -661,11 +669,10 @@
 .. index:: CONFIGURE_SHELL_COMMAND_ID
 
-This command is included in the default shell command set.
-When building a custom command set, define``CONFIGURE_SHELL_COMMAND_ID`` to have this
-command included.
-
-This command can be excluded from the shell command set by
-defining ``CONFIGURE_SHELL_NO_COMMAND_ID`` when all
-shell commands have been configured.
+This command is included in the default shell command set.  When building a
+custom command set, define ``CONFIGURE_SHELL_COMMAND_ID`` to have this command
+included.
+
+This command can be excluded from the shell command set by defining
+``CONFIGURE_SHELL_NO_COMMAND_ID`` when all shell commands have been configured.
 
 **PROGRAMMING INFORMATION:**
@@ -673,15 +680,16 @@
 .. index:: rtems_shell_rtems_main_id
 
-The ``id`` is implemented by a C language function
-which has the following prototype:
+The ``id`` is implemented by a C language function which has the following
+prototype:
+
 .. code:: c
 
     int rtems_shell_rtems_main_id(
-    int    argc,
-    char \**argv
+        int    argc,
+        char **argv
     );
 
-The configuration structure for the ``id`` has the
-following prototype:
+The configuration structure for the ``id`` has the following prototype:
+
 .. code:: c
 
@@ -694,5 +702,5 @@
 **SYNOPSYS:**
 
-.. code:: c
+.. code:: shell
 
     tty
@@ -700,6 +708,5 @@
 **DESCRIPTION:**
 
-This command prints the file name of the device connected
-to standard input.
+This command prints the file name of the device connected to standard input.
 
 **EXIT STATUS:**
@@ -714,7 +721,8 @@
 
 The following is an example of how to use ``tty``:
-.. code:: c
-
-    SHLL \[/] $ tty
+
+.. code:: shell
+
+    SHLL [/] $ tty
     /dev/console
 
@@ -724,11 +732,11 @@
 .. index:: CONFIGURE_SHELL_COMMAND_TTY
 
-This command is included in the default shell command set.
-When building a custom command set, define``CONFIGURE_SHELL_COMMAND_TTY`` to have this
-command included.
-
-This command can be excluded from the shell command set by
-defining ``CONFIGURE_SHELL_NO_COMMAND_TTY`` when all
-shell commands have been configured.
+This command is included in the default shell command set.  When building a
+custom command set, define ``CONFIGURE_SHELL_COMMAND_TTY`` to have this command
+included.
+
+This command can be excluded from the shell command set by defining
+``CONFIGURE_SHELL_NO_COMMAND_TTY`` when all shell commands have been
+configured.
 
 **PROGRAMMING INFORMATION:**
@@ -736,15 +744,16 @@
 .. index:: rtems_shell_rtems_main_tty
 
-The ``tty`` is implemented by a C language function
-which has the following prototype:
+The ``tty`` is implemented by a C language function which has the following
+prototype:
+
 .. code:: c
 
     int rtems_shell_rtems_main_tty(
-    int    argc,
-    char \**argv
+        int    argc,
+        char **argv
     );
 
-The configuration structure for the ``tty`` has the
-following prototype:
+The configuration structure for the ``tty`` has the following prototype:
+
 .. code:: c
 
@@ -757,5 +766,5 @@
 **SYNOPSYS:**
 
-.. code:: c
+.. code:: shell
 
     whoami
@@ -763,6 +772,6 @@
 **DESCRIPTION:**
 
-This command displays the user name associated with the current
-effective user id.
+This command displays the user name associated with the current effective user
+id.
 
 **EXIT STATUS:**
@@ -772,12 +781,13 @@
 **NOTES:**
 
-NONE
+None.
 
 **EXAMPLES:**
 
 The following is an example of how to use ``whoami``:
-.. code:: c
-
-    SHLL \[/] $ whoami
+
+.. code:: shell
+
+    SHLL [/] $ whoami
     rtems
 
@@ -787,11 +797,11 @@
 .. index:: CONFIGURE_SHELL_COMMAND_WHOAMI
 
-This command is included in the default shell command set.
-When building a custom command set, define``CONFIGURE_SHELL_COMMAND_WHOAMI`` to have this
+This command is included in the default shell command set.  When building a
+custom command set, define ``CONFIGURE_SHELL_COMMAND_WHOAMI`` to have this
 command included.
 
-This command can be excluded from the shell command set by
-defining ``CONFIGURE_SHELL_NO_COMMAND_WHOAMI`` when all
-shell commands have been configured.
+This command can be excluded from the shell command set by defining
+``CONFIGURE_SHELL_NO_COMMAND_WHOAMI`` when all shell commands have been
+configured.
 
 **PROGRAMMING INFORMATION:**
@@ -799,15 +809,16 @@
 .. index:: rtems_shell_rtems_main_whoami
 
-The ``whoami`` is implemented by a C language function
-which has the following prototype:
+The ``whoami`` is implemented by a C language function which has the following
+prototype:
+
 .. code:: c
 
     int rtems_shell_rtems_main_whoami(
-    int    argc,
-    char \**argv
+        int    argc,
+        char **argv
     );
 
-The configuration structure for the ``whoami`` has the
-following prototype:
+The configuration structure for the ``whoami`` has the following prototype:
+
 .. code:: c
 
@@ -820,5 +831,5 @@
 **SYNOPSYS:**
 
-.. code:: c
+.. code:: shell
 
     getenv variable
@@ -826,11 +837,10 @@
 **DESCRIPTION:**
 
-This command is used to display the value of a ``variable`` in the set
-of environment variables.
-
-**EXIT STATUS:**
-
-This command will return 1 and print a diagnostic message if
-a failure occurs.
+This command is used to display the value of a ``variable`` in the set of
+environment variables.
+
+**EXIT STATUS:**
+
+This command will return 1 and print a diagnostic message if a failure occurs.
 
 **NOTES:**
@@ -841,7 +851,8 @@
 
 The following is an example of how to use ``getenv``:
-.. code:: c
-
-    SHLL \[/] $ getenv BASEPATH
+
+.. code:: shell
+
+    SHLL [/] $ getenv BASEPATH
     /mnt/hda1
 
@@ -851,11 +862,11 @@
 .. index:: CONFIGURE_SHELL_COMMAND_GETENV
 
-This command is included in the default shell command set.
-When building a custom command set, define``CONFIGURE_SHELL_COMMAND_GETENV`` to have this
+This command is included in the default shell command set.  When building a
+custom command set, define ``CONFIGURE_SHELL_COMMAND_GETENV`` to have this
 command included.
 
-This command can be excluded from the shell command set by
-defining ``CONFIGURE_SHELL_NO_COMMAND_GETENV`` when all
-shell commands have been configured.
+This command can be excluded from the shell command set by defining
+``CONFIGURE_SHELL_NO_COMMAND_GETENV`` when all shell commands have been
+configured.
 
 **PROGRAMMING INFORMATION:**
@@ -863,15 +874,16 @@
 .. index:: rtems_shell_rtems_main_getenv
 
-The ``getenv`` is implemented by a C language function
-which has the following prototype:
+The ``getenv`` is implemented by a C language function which has the following
+prototype:
+
 .. code:: c
 
     int rtems_shell_rtems_main_getenv(
-    int    argc,
-    char \**argv
+        int    argc,
+        char **argv
     );
 
-The configuration structure for the ``getenv`` has the
-following prototype:
+The configuration structure for the ``getenv`` has the following prototype:
+
 .. code:: c
 
@@ -884,19 +896,18 @@
 **SYNOPSYS:**
 
-.. code:: c
-
-    setenv variable \[value]
+.. code:: shell
+
+    setenv variable [value]
 
 **DESCRIPTION:**
 
 This command is used to add a new ``variable`` to the set of environment
-variables or to modify the variable of an already existing ``variable``.
-If the ``value`` is not provided, the ``variable`` will be set to the
-empty string.
-
-**EXIT STATUS:**
-
-This command will return 1 and print a diagnostic message if
-a failure occurs.
+variables or to modify the variable of an already existing ``variable``.  If
+the ``value`` is not provided, the ``variable`` will be set to the empty
+string.
+
+**EXIT STATUS:**
+
+This command will return 1 and print a diagnostic message if a failure occurs.
 
 **NOTES:**
@@ -907,7 +918,8 @@
 
 The following is an example of how to use ``setenv``:
-.. code:: c
-
-    SHLL \[/] $ setenv BASEPATH /mnt/hda1
+
+.. code:: shell
+
+    SHLL [/] $ setenv BASEPATH /mnt/hda1
 
 **CONFIGURATION:**
@@ -916,11 +928,11 @@
 .. index:: CONFIGURE_SHELL_COMMAND_SETENV
 
-This command is included in the default shell command set.
-When building a custom command set, define``CONFIGURE_SHELL_COMMAND_SETENV`` to have this
+This command is included in the default shell command set.  When building a
+custom command set, define ``CONFIGURE_SHELL_COMMAND_SETENV`` to have this
 command included.
 
-This command can be excluded from the shell command set by
-defining ``CONFIGURE_SHELL_NO_COMMAND_SETENV`` when all
-shell commands have been configured.
+This command can be excluded from the shell command set by defining
+``CONFIGURE_SHELL_NO_COMMAND_SETENV`` when all shell commands have been
+configured.
 
 **PROGRAMMING INFORMATION:**
@@ -928,15 +940,16 @@
 .. index:: rtems_shell_rtems_main_setenv
 
-The ``setenv`` is implemented by a C language function
-which has the following prototype:
+The ``setenv`` is implemented by a C language function which has the following
+prototype:
+
 .. code:: c
 
     int rtems_shell_rtems_main_setenv(
-    int    argc,
-    char \**argv
+        int    argc,
+        char **argv
     );
 
-The configuration structure for the ``setenv`` has the
-following prototype:
+The configuration structure for the ``setenv`` has the following prototype:
+
 .. code:: c
 
@@ -949,5 +962,5 @@
 **SYNOPSYS:**
 
-.. code:: c
+.. code:: shell
 
     unsetenv variable
@@ -955,11 +968,9 @@
 **DESCRIPTION:**
 
-This command is remove to a ``variable`` from the set of environment
-variables.
-
-**EXIT STATUS:**
-
-This command will return 1 and print a diagnostic message if
-a failure occurs.
+This command is remove to a ``variable`` from the set of environment variables.
+
+**EXIT STATUS:**
+
+This command will return 1 and print a diagnostic message if a failure occurs.
 
 **NOTES:**
@@ -970,7 +981,8 @@
 
 The following is an example of how to use ``unsetenv``:
-.. code:: c
-
-    SHLL \[/] $ unsetenv BASEPATH
+
+.. code:: shell
+
+    SHLL [/] $ unsetenv BASEPATH
 
 **CONFIGURATION:**
@@ -979,11 +991,11 @@
 .. index:: CONFIGURE_SHELL_COMMAND_UNSETENV
 
-This command is included in the default shell command set.
-When building a custom command set, define``CONFIGURE_SHELL_COMMAND_UNSETENV`` to have this
+This command is included in the default shell command set.  When building a
+custom command set, define ``CONFIGURE_SHELL_COMMAND_UNSETENV`` to have this
 command included.
 
-This command can be excluded from the shell command set by
-defining ``CONFIGURE_SHELL_NO_COMMAND_UNSETENV`` when all
-shell commands have been configured.
+This command can be excluded from the shell command set by defining
+``CONFIGURE_SHELL_NO_COMMAND_UNSETENV`` when all shell commands have been
+configured.
 
 **PROGRAMMING INFORMATION:**
@@ -991,15 +1003,16 @@
 .. index:: rtems_shell_rtems_main_unsetenv
 
-The ``unsetenv`` is implemented by a C language function
-which has the following prototype:
+The ``unsetenv`` is implemented by a C language function which has the
+following prototype:
+
 .. code:: c
 
     int rtems_shell_rtems_main_unsetenv(
-    int    argc,
-    char \**argv
+        int    argc,
+        char **argv
     );
 
-The configuration structure for the ``unsetenv`` has the
-following prototype:
+The configuration structure for the ``unsetenv`` has the following prototype:
+
 .. code:: c
 
@@ -1014,11 +1027,10 @@
 .. code:: c
 
-    time command \[argument ...]
-
-**DESCRIPTION:**
-
-The time command executes and times a command.  After the command
-finishes, time writes the total time elapsed.  Times are reported in
-seconds.
+    time command [argument ...]
+
+**DESCRIPTION:**
+
+The time command executes and times a command.  After the command finishes,
+time writes the total time elapsed.  Times are reported in seconds.
 
 **EXIT STATUS:**
@@ -1033,7 +1045,8 @@
 
 The following is an example of how to use ``time``:
-.. code:: c
-
-    SHLL \[/] $ time cp -r /nfs/directory /c
+
+.. code:: shell
+
+    SHLL [/] $ time cp -r /nfs/directory /c
 
 **CONFIGURATION:**
@@ -1042,10 +1055,11 @@
 .. index:: CONFIGURE_SHELL_COMMAND_TIME
 
-This command is included in the default shell command set.  When
-building a custom command set, define``CONFIGURE_SHELL_COMMAND_TIME`` to have this command included.
-
-This command can be excluded from the shell command set by
-defining ``CONFIGURE_SHELL_NO_COMMAND_TIME`` when all
-shell commands have been configured.
+This command is included in the default shell command set.  When building a
+custom command set, define ``CONFIGURE_SHELL_COMMAND_TIME`` to have this command
+included.
+
+This command can be excluded from the shell command set by defining
+``CONFIGURE_SHELL_NO_COMMAND_TIME`` when all shell commands have been
+configured.
 
 **PROGRAMMING INFORMATION:**
@@ -1053,15 +1067,16 @@
 .. index:: rtems_shell_rtems_main_time
 
-The ``time`` is implemented by a C language function
-which has the following prototype:
+The ``time`` is implemented by a C language function which has the following
+prototype:
+
 .. code:: c
 
     int rtems_shell_rtems_main_time(
-    int    argc,
-    char \**argv
+        int    argc,
+        char **argv
     );
 
-The configuration structure for the ``time`` has the
-following prototype:
+The configuration structure for the ``time`` has the following prototype:
+
 .. code:: c
 
@@ -1074,5 +1089,5 @@
 **SYNOPSYS:**
 
-.. code:: c
+.. code:: shell
 
     logoff
@@ -1088,15 +1103,16 @@
 **NOTES:**
 
-The system behavior when the shell is exited depends upon how the
-shell was initiated.  The typical behavior is that a login prompt
-will be displayed for the next login attempt or that the connection
-will be dropped by the RTEMS system.
+The system behavior when the shell is exited depends upon how the shell was
+initiated.  The typical behavior is that a login prompt will be displayed for
+the next login attempt or that the connection will be dropped by the RTEMS
+system.
 
 **EXAMPLES:**
 
 The following is an example of how to use ``logoff``:
-.. code:: c
-
-    SHLL \[/] $ logoff
+
+.. code:: shell
+
+    SHLL [/] $ logoff
     logoff from the system...
 
@@ -1106,11 +1122,11 @@
 .. index:: CONFIGURE_SHELL_COMMAND_LOGOFF
 
-This command is included in the default shell command set.
-When building a custom command set, define``CONFIGURE_SHELL_COMMAND_LOGOFF`` to have this
+This command is included in the default shell command set.  When building a
+custom command set, define ``CONFIGURE_SHELL_COMMAND_LOGOFF`` to have this
 command included.
 
-This command can be excluded from the shell command set by
-defining ``CONFIGURE_SHELL_NO_COMMAND_LOGOFF`` when all
-shell commands have been configured.
+This command can be excluded from the shell command set by defining
+``CONFIGURE_SHELL_NO_COMMAND_LOGOFF`` when all shell commands have been
+configured.
 
 **PROGRAMMING INFORMATION:**
@@ -1118,15 +1134,16 @@
 .. index:: rtems_shell_rtems_main_logoff
 
-The ``logoff`` is implemented by a C language function
-which has the following prototype:
+The ``logoff`` is implemented by a C language function which has the following
+prototype:
+
 .. code:: c
 
     int rtems_shell_rtems_main_logoff(
-    int    argc,
-    char \**argv
+        int    argc,
+        char **argv
     );
 
-The configuration structure for the ``logoff`` has the
-following prototype:
+The configuration structure for the ``logoff`` has the following prototype:
+
 .. code:: c
 
@@ -1139,5 +1156,5 @@
 **SYNOPSYS:**
 
-.. code:: c
+.. code:: shell
 
     rtc
@@ -1148,11 +1165,11 @@
 .. index:: CONFIGURE_SHELL_COMMAND_RTC
 
-This command is included in the default shell command set.
-When building a custom command set, define``CONFIGURE_SHELL_COMMAND_RTC`` to have this
-command included.
-
-This command can be excluded from the shell command set by
-defining ``CONFIGURE_SHELL_NO_COMMAND_RTC`` when all
-shell commands have been configured.
+This command is included in the default shell command set.  When building a
+custom command set, define ``CONFIGURE_SHELL_COMMAND_RTC`` to have this command
+included.
+
+This command can be excluded from the shell command set by defining
+``CONFIGURE_SHELL_NO_COMMAND_RTC`` when all shell commands have been
+configured.
 
 exit - exit the shell
@@ -1162,5 +1179,5 @@
 **SYNOPSYS:**
 
-.. code:: c
+.. code:: shell
 
     exit
@@ -1176,13 +1193,14 @@
 **NOTES:**
 
-In contrast to `logoff - logoff from the system`_,
-this command is built into the shell interpreter loop.
+In contrast to `logoff - logoff from the system`, this command is built into
+the shell interpreter loop.
 
 **EXAMPLES:**
 
 The following is an example of how to use ``exit``:
-.. code:: c
-
-    SHLL \[/] $ exit
+
+.. code:: shell
+
+    SHLL [/] $ exit
     Shell exiting
 
@@ -1193,11 +1211,4 @@
 **PROGRAMMING INFORMATION:**
 
-The ``exit`` is implemented directly in the shell interpreter.
-There is no C routine associated with it.
-
-.. COMMENT: COPYRIGHT (c) 1988-2008.
-
-.. COMMENT: On-Line Applications Research Corporation (OAR).
-
-.. COMMENT: All rights reserved.
-
+The ``exit`` is implemented directly in the shell interpreter.  There is no C
+routine associated with it.
