1BASH(1) General Commands Manual BASH(1)
2
3
4
6 bash - GNU Bourne-Again SHell
7
9 bash [options] [file]
10
12 Bash is Copyright (C) 1989-2009 by the Free Software Foundation, Inc.
13
15 Bash is an sh-compatible command language interpreter that executes
16 commands read from the standard input or from a file. Bash also incor‐
17 porates useful features from the Korn and C shells (ksh and csh).
18
19 Bash is intended to be a conformant implementation of the Shell and
20 Utilities portion of the IEEE POSIX specification (IEEE Standard
21 1003.1). Bash can be configured to be POSIX-conformant by default.
22
24 In addition to the single-character shell options documented in the
25 description of the set builtin command, bash interprets the following
26 options when it is invoked:
27
28 -c string If the -c option is present, then commands are read from
29 string. If there are arguments after the string, they are
30 assigned to the positional parameters, starting with $0.
31 -i If the -i option is present, the shell is interactive.
32 -l Make bash act as if it had been invoked as a login shell (see
33 INVOCATION below).
34 -r If the -r option is present, the shell becomes restricted
35 (see RESTRICTED SHELL below).
36 -s If the -s option is present, or if no arguments remain after
37 option processing, then commands are read from the standard
38 input. This option allows the positional parameters to be
39 set when invoking an interactive shell.
40 -D A list of all double-quoted strings preceded by $ is printed
41 on the standard output. These are the strings that are sub‐
42 ject to language translation when the current locale is not C
43 or POSIX. This implies the -n option; no commands will be
44 executed.
45 [-+]O [shopt_option]
46 shopt_option is one of the shell options accepted by the
47 shopt builtin (see SHELL BUILTIN COMMANDS below). If
48 shopt_option is present, -O sets the value of that option; +O
49 unsets it. If shopt_option is not supplied, the names and
50 values of the shell options accepted by shopt are printed on
51 the standard output. If the invocation option is +O, the
52 output is displayed in a format that may be reused as input.
53 -- A -- signals the end of options and disables further option
54 processing. Any arguments after the -- are treated as file‐
55 names and arguments. An argument of - is equivalent to --.
56
57 Bash also interprets a number of multi-character options. These
58 options must appear on the command l