MPE/iX Shell and Utilities Reference Manual, Vol 2
sh(1) MPE/iX Shell and Utilities sh(1)
NAME
sh, rsh — POSIX-compliant (Korn) shell and command interpreter
SYNOPSIS
[r]sh [–abCefhiKkLmnprtuvx][–o option][cmd_file [argument...]]
[r]sh –c cmdstring [–abCefhiKkLmnprtuvx][–o option][cmd_name [argument...]]
[r]sh –s [–abCefhikLmnprtuvx][–o option][argument...]
DESCRIPTION
Note: The
MPE/iX implementation of this utility does not function exactly as this man page
describes. For details, see the MPE/iX NOTES section at the end of this man page.
This manual page for sh contains the following subsections:
• Options and Invocation
• Command Syntax
• Command Execution
• Word Expansion
• Quoting
• Directory Substitution
• Parameter Substitution
• Arithmetic Substitution
• Command Substitution
• File Descriptors and Redirection
• File Name Generation
• Variables
• Shell Execution Environments
• Built-in Commands
Subsections dealing with substitution and interpretation of input appear in the order in which
the shell performs those substitutions and interpretations.
Much of the functionality of the shell comes from built-in commands like cd(1) and
alias(1). The man pages for such commands describe additional features of the shell not
included here.
Options and Invocation
MPE/iX Shell (sh) is a sophisticated command interpreter which is a variant of the popular
KornShell found on the UNIX operating system.
Normally you invoke the shell by logging in. You can also invoke the shell by typing an
explicit sh command. Some people find it useful to copy the sh file into a file named rsh.If
you invoke the shell under the name rsh, the shell operates in restricted mode. This mode is
described in connection with the –r option.
Commands and Utilities 1-519