sh-posix.1 (2010 09)
s
sh-posix(1) sh-posix(1)
bg [job]...
Put the specified jobs into the background. The current job is put in the background if job is
unspecified. See the Jobs subsection for a description of the format of job . See also the
fg special
command.
%
break [n]
Exit from the enclosing for, select,
until,orwhile loop, if any. If n is specified, exit from n
levels.
cd [-L-P][arg]
cd old new
In the first form, change the current working directory (
PWD)toarg.Ifarg is -, the directory is
changed to the previous directory (
OLDPWD
). The shell parameter HOME is the default arg . After
the
cd, the PWD and OLDPWD environment variables are set to the new current directory and the
former directory respectively.
With
-L (default), preserve logical naming when treating symbolic links.
cd -L .. moves the
current directory one path component closer to the root directory.
With
-P, preserve the physical path when treating symbolic links.
cd -P .. changes the working
directory to the actual parent directory of the current directory.
The shell parameter
CDPATH defines the search path for the directory containing arg .Alternative
directory names are separated by a colon (:). If CDPATH is null or undefined, the default value is
the current directory. Note that the current directory is specified by a null path name, which can
appear immediately after the equal sign or between the colon delimiters anywhere else in the path
list. If arg begins with a /, the search path is not used. Otherwise, each directory in the path is
searched for arg. See also cd(1).
The second form of
cd substitutes the string new for the string old in the current directory name,
PWD, and tries to change to this new directory.
command [arg]...
Treat arg as a command, but disable function lookup on arg . See command (1) for usage and
description.
%
continue [n]
Resume the next iteration of the enclosing for, select, until,orwhile loop. If n is specified,
resume at the nth enclosing loop.
echo [arg]...
Print arg on standard output. See echo (1) for usage and description. See also the
print special
command.
%
eval [arg]...
Read the arguments as input to the shell and execute the resulting commands. Allows parameter
substitution for keywords and characters that would otherwise be unrecognized in the resulting
commands.
%
exec [arg]...
Parameter assignments remain in effect after the command completes. If arg is given, execute the
command specified by the arguments in place of this shell without creating a new process.
Input/output arguments may appear and affect the current process. If no arguments are given,
modify file descriptors as prescribed by the input/output redirection list. In this case, any file
descriptor numbers greater than 2 that are opened with this mechanism are closed when another
program is invoked.
%
exit [n]
Exit from the shell with the exit status specified by n.Ifn is omitted, the exit status is that of the
last command executed. An end-of-file also causes the shell to exit, except when a shell has the
ignoreeof option set. (See the set special command.)
%&
export [name[=value] ]...
%& export -p
Mark the given variable name s for automatic export to the environment of subsequently executed
commands. Optionally, assign values to the variables.
With no arguments, write the names and values of all exported variables to standard output,
HP-UX 11i Version 3: September 2010 − 5 − Hewlett-Packard Company 5