| KSH93T ( 1 ) | USER COMMANDS | KSH93T ( 1 ) |
|---|
If the -i option is present, or there are no args and the standard input and standard error are attached to a terminal, the shell is considered to be interactive.
The -s and -c options are mutually exclusive. If the -c option is specified, the first arg is the command-line string and must be specified. Any remaining args will be used to initialize $0 and positional parameters.
If the neither -s nor -c is specified, then the first arg will be the pathname of the file containing commands and $0 will be set to this value. If there is no file with this pathname, and this pathame does not contain a /, then the PATH will be searched for an executable with this name. Any remaining args will be used to initialize the positional parmaeters.
Any option can use a + instead of a - to disable the corresponding option.