(features.info)The Set Builtin
The Set Builtin
This builtin is so overloaded that it deserves its own section.
set [-abefhkmnptuvxldCHP] [-o OPTION] [ARGUMENT ...]
Mark variables which are modified or created for export.
Cause the status of terminated background jobs to be reported
immediately, rather than before printing the next primary
Exit immediately if a command exits with a non-zero status.
Disable file name generation (globbing).
Locate and remember (hash) commands as functions are defined,
rather than when the function is executed.
All keyword arguments are placed in the environment for a
command, not just those that precede the command name.
Job control is enabled (Note: Job Control.).
Read commands but do not execute them.
Set the flag corresponding to OPTION-NAME:
same as `-a'.
the shell will perform brace expansion (Note: Brace
use an emacs-style line editing interface (Note: Command
same as `-e'.
same as `-H'.
the shell will not exit upon reading EOF.
allow a word beginning with a `#' to cause that word and
all remaining characters on that line to be ignored in an
same as `-m'.
same as `-C'.
same as `-n'.
same as `-f'.
same as `-d'.
same as `-b'.
same as `-u'.
same as `-P'.
change the behavior of Bash where the default operation
differs from the Posix 1003.2 standard to match the
standard. This is intended to make Bash behave as a
strict superset of that standard.
same as `-p'.
same as `-v'.
use a `vi'-style line editing interface.
same as `-x'.
Turn on privileged mode. In this mode, the `$ENV' file is
not processed, and shell functions are not inherited from the
environment. This is enabled automatically on startup if the
effective user (group) id is not equal to the real user
(group) id. Turning this option off causes the effective user
and group ids to be set to the real user and group ids.
Exit after reading and executing one command.
Treat unset variables as an error when substituting.
Print shell input lines as they are read.
Print commands and their arguments as they are executed.
Save and restore the binding of the NAME in a `for' command.
Disable the hashing of commands that are looked up for
execution. Normally, commands are remembered in a hash
table, and once found, do not have to be looked up again.
Disallow output redirection to existing files.
Enable ! style history substitution. This flag is on by
If set, do not follow symbolic links when performing commands
such as `cd' which change the current directory. The
physical directory is used instead.
If no arguments follow this flag, then the positional
parameters are unset. Otherwise, the positional parameters
are set to the ARGUMENTS, even if some of them begin with a
Signal the end of options, cause all remaining ARGUMENTS to
be assigned to the positional parameters. The `-x' and `-v'
options are turned off. If there are no arguments, the
positional parameters remain unchanged.
Using `+' rather than `-' causes these flags to be turned off.
The flags can also be used upon invocation of the shell. The
current set of flags may be found in `$-'. The remaining N
ARGUMENTS are positional parameters and are assigned, in order, to
`$1', `$2', .. `$N'. If no arguments are given, all shell
variables are printed.
Next: Bash Variables Prev: Bash Builtins Up: Bash Specific Features
[ Dokumentation lokal installierter Software ]