оболочка, стандартный интерпретатор командного языка (shell, the standard command language interpreter)
Параметры (Options)
The sh utility shall conform to the Base Definitions volume of
POSIX.1‐2017, Section 12.2, Utility Syntax Guidelines, with an
extension for support of a leading <plus-sign> ('+'
) as noted
below.
The -a
, -b
, -C
, -e
, -f
, -m
, -n
, -o
option, -u
, -v
, and -x
options
are described as part of the set utility in Section 2.14, Special
Built-In Utilities. The option letters derived from the set
special built-in shall also be accepted with a leading <plus-
sign> ('+'
) instead of a leading <hyphen-minus> (meaning the
reverse case of the option as described in this volume of
POSIX.1‐2017).
The following additional options shall be supported:
-c
Read commands from the command_string operand. Set the
value of special parameter 0 (see Section 2.5.2,
Special Parameters) from the value of the command_name
operand and the positional parameters ($1, $2, and so
on) in sequence from the remaining argument operands.
No commands shall be read from the standard input.
-i
Specify that the shell is interactive; see below. An
implementation may treat specifying the -i
option as an
error if the real user ID of the calling process does
not equal the effective user ID or if the real group ID
does not equal the effective group ID.
-s
Read commands from the standard input.
If there are no operands and the -c
option is not specified, the
-s
option shall be assumed.
If the -i
option is present, or if there are no operands and the
shell's standard input and standard error are attached to a
terminal, the shell is considered to be interactive.