qsh - Qshell command language interpreter
Synopsis
qsh [-abCefFijlmntuvx] [-o
option] command_file arg ...
qsh -c [-abCefFijlmntuvx] [-o
option] command_string
qsh -s [-abCefFijlmntuvx] [-o
option] arg ...
Description
The qsh utility is the Qshell command language
interpreter. In the first synopsis form, qsh reads
the specified command_file and runs the commands contained
in the file. In the second synopsis form, qsh runs
the specified command_string and ends. In the third
synopsis form, qsh reads commands from standard
input.
Options
The a, b, C, e, f, F, j, l, m, n, -o
option t, u, v, and x
options are described in set - Set or unset
options and positional parameters.
- -c
- Run the command specified in command_string and
exit.
- -i
- The shell is interactive. If there are no operands and standard
input is connected to a terminal, the -i option is
set by default.
- -s
- Read commands from standard input. If there are no operands and
the -c option is not specified, the
-s option is set by default.
Operands
The command_file is the pathname of a regular file that
contains Qshell commands. If the pathname does not contain a slash
(/) character, qsh searches for
command_file using the PATH variable. The
special parameter 0 is set to the value of command_file.
Each arg is a positional parameter.
The command_string is any Qshell command, including
compound commands.
Exit Status
- 0 when successful.
- 1 when unsuccessful.
- 2 when an error occurred in a script.
- 3 when there was an unexpected exception in a root shell.
- 4 when there was an unexpected exception in an exception handler for a root shell.
- 5 when there was an unexpected exception in a child shell.
- 6 when there was an unexpected exception in an exception handler for a child shell.
- 7 when descriptor 0 was not available.
- 8 when descriptor 1 was not available.
- 9 when descriptor 2 was not available.
- 10 when there was an error opening the message catalog.
- 11-125 when unsuccessful.
- 126 when a command was found but could not be invoked.
- 127 when a command cannot be found.
- >128 when a command was ended by a signal. The value is 128 plus the signal number.
Related information