[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
bash [long-opt] [-ir] [-abefhkmnptuvxdBCDHP] [-o option] [-O shopt_option] [argument ...] bash [long-opt] [-abefhkmnptuvxdBCDHP] [-o option] [-O shopt_option] -c string [argument ...] bash [long-opt] -s [-abefhkmnptuvxdBCDHP] [-o option] [-O shopt_option] [argument ...] |
In addition to the single-character shell command-line options (see section 4.3 The Set Builtin), there are several multi-character options that you can use. These options must appear on the command line before the single-character options in order for them to be recognized.
--dump-po-strings
gettext
PO (portable object) file format.
Equivalent to `-D' except for the output format.
--dump-strings
--help
--init-file filename
--rcfile filename
--login
--noediting
--noprofile
--norc
sh
.
--posix
--restricted
--verbose
--version
There are several single-character options that may be supplied at
invocation which are not available with the set
builtin.
-c string
$0
.
-i
-r
-s
-D
C
or POSIX
(see section 3.1.2.5 Locale-Specific Translation).
This implies the `-n' option; no commands will be executed.
[-+]O [shopt_option]
shopt
builtin (see section 4. Shell Builtin Commands).
If shopt_option is present, `-O' sets the value of that option;
`+O' unsets it.
If shopt_option is not supplied, the names and values of the shell
options accepted by shopt
are printed on the standard output.
If the invocation option is `+O', the output is displayed in a format
that may be reused as input.
--
--
signals the end of options and disables further option
processing.
Any arguments after the --
are treated as filenames and arguments.
A login shell is one whose first character of argument zero is `-', or one invoked with the `--login' option.
An interactive shell is one started without non-option arguments,
unless `-s' is specified,
without specifying the `-c' option, and whose input and output are both
connected to terminals (as determined by isatty(3)
), or one
started with the `-i' option. See section 6.3 Interactive Shells, for more
information.
If arguments remain after option processing, and neither the
`-c' nor the `-s'
option has been supplied, the first argument is assumed to
be the name of a file containing shell commands (see section 3.8 Shell Scripts).
When Bash is invoked in this fashion, $0
is set to the name of the file, and the positional parameters
are set to the remaining arguments.
Bash reads and executes commands from this file, then exits.
Bash's exit status is the exit status of the last command executed
in the script. If no commands are executed, the exit status is 0.
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |