bash [long-opt] [-ir] [-abefhkmnptuvxdBCDHP] [-o option] [argument ...] bash [long-opt] [-abefhkmnptuvxdBCDHP] [-o option] -c string [argument ...] bash [long-opt] -s [-abefhkmnptuvxdBCDHP] [-o option] [argument ...]
In addition to the single-character shell command-line options (see section 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.
--dump-strings
--help
--login
csh
. `exec bash --login'
will replace the current shell with a Bash login shell.
--noediting
--noprofile
--norc
sh
.
--posix
--rcfile filename
--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 Locale-Specific Translation).
This implies the `-n' option; no commands will be executed.
--
--
signals the end of options and disables further option
processing.
Any arguments after the --
are treated as filenames and arguments.
An interactive shell is one whose input and output are both
connected to terminals (as determined by isatty(3)
), or one
started with the `-i' option.
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 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.
Go to the first, previous, next, last section, table of contents.