sh-posix.1 (2010 09)
s
sh-posix(1) sh-posix(1)
With -l, list the signal names and numbers.
let arg ...
(( arg ...))
Evaluate each arg as a separate arithmetic expression. See the Arithmetic Evaluation subsection
for a description of arithmetic expression evaluation. The exit status is 0 if the value of the last
expression is nonzero, and 1 otherwise.
%
newgrp [-][group]
Replace the current shell with a new one having group as the user’s group. The default group is the
user’s login group. With
-, also execute the user’s .profile and $ENV files. See newgrp(1) for
usage and description. Equivalent to
exec newgrp
arg ....
print [-nprRsu[n]] [arg]...
The shell output mechanism. With no options or with option
- or --, print the arguments on stan-
dard output as described in echo (1). See also printf (1).
With
-n, do not add a newline character to the output.
With
-p, write the arguments onto the pipe of the process spawned with
|& instead of standard out-
put.
With
-R or -r (raw mode), ignore the escape conventions of
echo. With -R, print all subsequent
arguments and options other than
-n.
With
-s, write the arguments into the history file instead of to standard output.
With
-u, specify a one-digit file descriptor unit number n on which the output will be placed. The
default is 1 (standard output).
pwd [-L-P]
Print the name of the current working directory (equivalent to print -r - $PWD
). With -L (the
default), preserve the logical meaning of the current directory. With
-P, preserve the physical
meaning of the current directory if it is a symbolic link. See also the cd special command, cd(1),
ln(1), and pwd(1).
read [-prsu[n]] [name?prompt][name]...
The shell input mechanism. Read one line (by default, from standard input) and break it up into
words using the characters in IFS as separators. The first word is assigned to the first name, the
second word to the second name, and so on; the remaining words are assigned to the last name. See
also read (1). The return code is
0, unless an end-of-file is encountered.
With
-p, take the input line from the input pipe of a process spawned by the shell using
|&.An
end-of-file with
-p causes cleanup for this process so that another process can be spawned.
With
-r (raw mode), a \ at the end of a line does not signify line continuation.
With
-s, save the input as a command in the history file.
With
-u, specify a one-digit file descriptor unit to read from. The file descriptor can be opened with
the exec special command. The default value of n is 0 (standard input). If name is omitted,
REPLY is used as the default name.
If the first argument contains a
?, the remainder of the argument is used as a prompt when the
shell is interactive.
If the given file descriptor is open for writing and is a terminal device, the prompt is placed on that
unit. Otherwise, the prompt is issued on file descriptor 2 (standard error).
%&
readonly [name[=value] ]...
%& readonly -p
Mark the given name s read only. These names cannot be changed by subsequent assignment.
With
-p, write the names and values of all read-only variables to standard output in a format with
the proper use of quoting so that it is suitable for re-input to the shell as commands that achieve the
same attribute-setting results.
%
return [n]
Cause a shell function to return to the invoking script with the return status specified by n.Ifn is
omitted, the return status is that of the last command executed. Only the low 8 bits of n (decimal 0
to 255) are passed back to the caller. If return is invoked while not in a function or a . script (see
the . special command), it has the same effect as an exit command.
HP-UX 11i Version 3: September 2010 − 7 − Hewlett-Packard Company 7