HP-UX Reference (11i v1 05/09) - 1 User Commands N-Z (vol 2)

s
sh-posix(1) sh-posix(1)
name=pathname on standard output.
With -x, set exported aliases. An exported alias is defined across subshell environments. With
name=value omitted, print the list of exported aliases in the form name
=value on standard output.
Alias returns true unless a name is given for which no alias has been defined.
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.
%
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).
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
HOME is the default arg. The parameter PWD is set to 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 descrip-
tion.
%
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 sub-
stitution for keywords and characters that would otherwise be unrecognized in the resulting com-
mands.
% 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 descrip-
tor numbers greater than 2 that are opened with this mechanism are closed when another program is
invoked.
Section 1896 Hewlett-Packard Company 5 HP-UX 11i Version 1: September 2005