Changeset e1797c0 in rtems-docs


Ignore:
Timestamp:
Jan 16, 2016, 8:26:26 PM (4 years ago)
Author:
Chris Johns <chrisj@…>
Branches:
4.11, master
Children:
8ca13ed
Parents:
1d83077
git-author:
Chris Johns <chrisj@…> (01/16/16 20:26:26)
git-committer:
Amar Takhar <verm@…> (05/03/16 00:51:22)
Message:

Clean up the alias command.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • shell/shell.rst

    r1d83077 re1797c0  
    574574========
    575575
    576 This section details the General Commands available.  A
    577 subsection is dedicated to each of the commands and
    578 describes the behavior and configuration of that
     576This section details the General Commands available.  A subsection is dedicated
     577to each of the commands and describes the behavior and configuration of that
    579578command as well as providing an example usage.
    580579
     
    591590**DESCRIPTION:**
    592591
    593 This command prints the command help. Help without arguments prints a
    594 list of topics and help with a topic prints the help for that topic.
     592This command prints the command help. Help without arguments prints a list of
     593topics and help with a topic prints the help for that topic.
    595594
    596595**EXIT STATUS:**
     
    600599**NOTES:**
    601600
    602 The help print will break the output up based on the environment
    603 variable SHELL_LINES. If this environment variable is not set the
    604 default is 16 lines. If set the number of lines is set to that the
    605 value. If the shell lines is set 0 there will be no break.
     601The help print will break the output up based on the environment variable
     602SHELL_LINES. If this environment variable is not set the default is 16
     603lines. If set the number of lines is set to that the value. If the shell lines
     604is set 0 there will be no break.
    606605
    607606**EXAMPLES:**
    608607
    609608The following is an example of how to use ``alias``:
    610 .. code:: c
    611 
    612     SHLL \[/] $ help
     609
     610.. code-block:: shell
     611
     612    SHLL [/] $ help
    613613    help: ('r' repeat last cmd - 'e' edit last cmd)
    614614    TOPIC? The topics are
    615615    mem, misc, files, help, rtems, network, monitor
    616     SHLL \[/] $ help misc
     616    SHLL [/] $ help misc
    617617    help: list for the topic 'misc'
    618618    alias        - alias old new
    619     time         - time command \[arguments...]
    620     joel         - joel \[args] SCRIPT
    621     date         - date \[YYYY-MM-DD HH:MM:SS]
    622     echo         - echo \[args]
    623     sleep        - sleep seconds \[nanoseconds]
     619    time         - time command [arguments...]
     620    joel         - joel [args] SCRIPT
     621    date         - date [YYYY-MM-DD HH:MM:SS]
     622    echo         - echo [args]
     623    sleep        - sleep seconds [nanoseconds]
    624624    id           - show uid, gid, euid, and egid
    625625    tty          - show ttyname
    626626    whoami       - show current user
    627627    logoff       - logoff from the system
    628     setenv       - setenv \[var] \[string]
    629     getenv       - getenv \[var]
    630     unsetenv     - unsetenv \[var]
    631     umask        - umask \[new_umask]
     628    setenv       - setenv [var] [string]
     629    getenv       - getenv [var]
     630    unsetenv     - unsetenv [var]
     631    umask        - umask [new_umask]
    632632    Press any key to continue...
    633633    rtc          - real time clock read and set
    634     SHLL \[/] $ setenv SHELL_ENV 0
    635     SHLL \[/] $ help misc
     634    SHLL [/] $ setenv SHELL_ENV 0
     635    SHLL [/] $ help misc
    636636    help: list for the topic 'misc'
    637637    alias        - alias old new
    638     time         - time command \[arguments...]
    639     joel         - joel \[args] SCRIPT
    640     date         - date \[YYYY-MM-DD HH:MM:SS]
    641     echo         - echo \[args]
    642     sleep        - sleep seconds \[nanoseconds]
     638    time         - time command [arguments...]
     639    joel         - joel [args] SCRIPT
     640    date         - date [YYYY-MM-DD HH:MM:SS]
     641    echo         - echo [args]
     642    sleep        - sleep seconds [nanoseconds]
    643643    id           - show uid, gid, euid, and egid
    644644    tty          - show ttyname
    645645    whoami       - show current user
    646646    logoff       - logoff from the system
    647     setenv       - setenv \[var] \[string]
    648     getenv       - getenv \[var]
    649     unsetenv     - unsetenv \[var]
    650     umask        - umask \[new_umask]
     647    setenv       - setenv [var] [string]
     648    getenv       - getenv [var]
     649    unsetenv     - unsetenv [var]
     650    umask        - umask [new_umask]
    651651    rtc          - real time clock read and set
    652652
     
    667667**DESCRIPTION:**
    668668
    669 This command adds an alternate name for an existing command to
    670 the command set.
     669This command adds an alternate name for an existing command to the command set.
    671670
    672671**EXIT STATUS:**
Note: See TracChangeset for help on using the changeset viewer.