

RSH                             5/2/81                             RSH


NAME
       rsh - shell with file recognition and RAW tty I/O

SYNOPSIS
       rsh [-cdnvx] [file] [arguments]

DESCRIPTION
       `rsh' is identical to `sh' with the exception that the input to
       the  shell is performed in RAW mode, such that word deletes and
       TENEX-style  recognition  is  supported,  which  are  described
       below.   Consult the manual entry for `sh' for more information
       on the common functions.

       `rsh' uses `rawpmt' instead of `prompt' to  fetch  its  command
       lines.  Since  `rawpmt'  does  RAW  io  to the terminal for its
       input, it can apply its own semantics to control characters  to
       provide  enhanced  functions to the user during terminal input.
       In the discussion below, the sequence  ^<char>  represents  the
       character  generated  when  the  user  hits  the  CTRL  key  in
       conjunction  with  the  <char>  key.   The  special   functions
       provided by `rsh' are:

         1. Both  backspace  (^H) and RUBOUT (RUB, DEL) may be used to
            delete the last character typed.

         2. ^U may be used to undo the current line - i.e.  delete  it
            and re-prompt for the line.

         3. ^R  may  be used to re-type the line.  This is useful when
            working on a hard-copy terminal, since  character  deletes
            are done with backspaces.

         4. ^W  deletes  the  last  word,  where  words are defined as
            strings  of  characters  delimited  by  blanks,  tabs  and
            slashes.  This  permits  the  deletion  of  fields in file
            pathnames.

         5. ^D causes the current working directory to  be  listed  on
            the terminal, after which the line is re-displayed and the
            user  may  continue  input  on  the current line.  This is
            useful when one gets part way through a command, and  then
            realizes  that  the  critical  file  name has slipped from
            recent memory.

         6. ^F causes file recognition to be performed on the  current
            pathname.  If  the filename can be extended unambiguously,
            it will be;  otherwise,  a  list  of  files  matching  the
            current  pattern are displayed, the line re-displayed, and
            the user may continue input on the line.

         7. ^V is similar to ^R, but any embedded  control  characters


                                 -1-                                  


RSH                             5/2/81                             RSH


            in  the  current line are displayed as ^<char>.  Only tabs
            (^I) and formfeeds (^L) are permitted to  be  embedded  in
            command  lines  by  `rawpmt' and are normally displayed as
            single carets (^), to permit the  display  width  of  each
            character  to  be 1.  ^V lets the user distinguish control
            characters from real carets.

FILES

SEE ALSO
       sh - command line interpreter
       hsh - shell with history capability

DIAGNOSTICS
       

AUTHORS
       Joe Sventek

BUGS
       
































                                 -2-                                  

