|
If the pushd command is successful, a dirs is performed as well.
If the first form is used, pushd returns 0 unless the
cd to dir fails. With the second form, pushd returns
0 unless the directory stack is empty, a nonexistent directory stack element is
specified, or the directory change to the specified new current directory fails.
|
pwd
|
Print the absolute pathname of the current working directory. The path
printed contains no symbolic links if the _P option to the
set builtin command is set. (See also the description of
nolinks under "Shell Variables," earlier in this manual
page.) The return status is 0 unless an error occurs while reading the pathname of
the current directory.
|
read [_r][name ...]
|
One line is read from the standard input, and the first word is assigned to the
first name, the second word to the second name, and so on, with leftover words
assigned to the last name. Only the characters in
IFS are recognized as word delimiters. If no names are supplied, the line read is assigned to the variable
REPLY. The return code is zero, unless end-of-file is encountered. If the
-r option is given, a backslash-newline pair is not ignored, and the backslash is considered to be part of the line.
|
readonly [_f][name ...]
|
The given names are marked
readonly and the values of these names may not be
|
readonly -p
|
changed by subsequent assignment. If the
_f option is supplied, the functions corresponding to the names are so marked. If no arguments are given, or if the
_p option is supplied, a list of all readonly names is printed. An argument of
disables option checking for the rest of the arguments. The return status is
0 unless an illegal option is encountered, one of the names is not a legal shell variable
name, or _f is supplied with a name that is not a function.
|
return [n]
|
Causes a function to exit with the return value specified by
n. If n is omitted, the return status is that of the last command executed in the function body. If
used outside a function, but during execution of a script by the
. (source) command, it causes the shell to stop executing that script and return
either n or the exit status of the last command executed within the script as the exit status of the script. If
used outside a function and not during execution of a script by
(. , the return status is False.
|
set [abefhkmnptuvxldCHP]
|
|
[-o option][arg ...]
|
|
|
or while loop, part of an if statement, part of a
&& or || list, or if the command's return value is being inverted via!.
|
|
_f
|
Disable pathname expansion.
|
|
_h
|
Locate and remember function commands as functions
are defined. Function commands are normally looked up
when the function is executed.
|
|
_k
|
All keyword arguments are placed in the environment for
a command, not just those that precede the command name.
|
|
_m
|
Monitor mode. Job control is enabled. This flag is on
by default for interactive shells on systems that support it.
(See "Job Control," earlier in this manual page.)
Background processes run in a separate process group and a line
containing their exit status is printed upon their completion.
|
|
_n
|
Read commands but do not execute them. This may be
used to check a shell script for syntax errors. This is ignored
for interactive shells.
|
|
_o option-name
|
The option-name can be one of the following:
|
|
|
allexportSame as _a.
|
|
|
braceexpandThe shell performs brace expansion. (See
"Brace Expansion," earlier in this manual page.) This is on by default.
|
|
|
emacsUse an emacs-style command line editing
interface. This is enabled by default when the shell is interactive,
unless the shell is started with the
_nolineediting option.
|
|
|
errexitSame as _e.
|
|
|
histexpandSame as _H.
|
|
|
ignoreeofThe effect is as if the shell
command `IGNOREEOF=10' had been executed. (See "Shell Variables.")
|
|
|
interactive_commentsAllow a word beginning
with # to cause that word and all remaining characters on that line to
be ignored in an interactive shell. (See "Comments," earlier
in this manual page.)
|
|
|
monitorSame as _m.
|
|
|
noclobberSame as _C.
|
|
|
noexecSame as _n.
|
|
|
noglobSame as _f.
|
|
|
nohashSame as _d.
|
|
|
notifySame as _b.
|
|
|
nounsetSame as _u.
|
|
|
physicalSame as _P.
|
|
|
posixChange the behavior of bash where the
default operation differs from the POSIX 1003.2 standard to
match the standard.
|
|
|
privilegedSame as _p.
|
|
|
verboseSame as _v.
|
|
|
viUse a vi-style command line editing interface.
|
|
|
xtraceSame as _x.
|
|
|
If no option-name is supplied, the values of the current
options are printed.
|