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

Related information