Size: 104
Comment:
|
Size: 1235
Comment:
|
Deletions are marked like this. | Additions are marked like this. |
Line 1: | Line 1: |
## page was renamed from bash/invocation/modes | <<TableOfContents>> === Invocation Modes === ---- ||<) tablewidth="100%" tablestyle="background-color: #E8E8FF;" rowstyle="background-color: #CCCCCC" 20% >'''Mode''' ||<(40%>'''Bash''' ||<(40%>'''POSIX Shell''' || ||<)|3>[[/LoginShell|LoginShell]] ||<(40% style="text-align:left">`-bash` `[`[[../option|options]]`]` ||<(>`-sh` || ||<( rowstyle="background-color: #f8f8ff">`bash` [[../option/l|-l]] `[`[[../option|options]]`]` ||<(> `sh -l` || ||<(>`bash` [[../option/login|--login]] `[`[[../option|options]]`]` ||<(> `sh --login` || ||<)>[[/CommandString|CommandString]] ||<(>`bash` [[../option/c|-c 'command']] `[`[[../option|options]]`]` ||<(>`sh [options] -c 'command'` || ||<)>Interactive Shell ||<(>`bash -i` ||<(>`sh -i` || ||<)>Shell Script ||<(>`#!/bin/bash [option]` ||<(>`#!/bin/sh [option]` || ||<)>Command File ||<(>`bash [options] file [args]` ||<(>`sh [options] file [args]` || ||<)>Command Stream ||<(>`bash [options] -s [SHELL [ARGS]]` ||<(>`sh [options] -s [SHELL [ARGS]]` || ---- ==== Login Shell ==== ==== Command String ==== ==== Interactive Shell ==== ==== Shell Script ==== ==== Command File ==== ==== Command Stream ==== |
Line 4: | Line 23: |
* [[../|Invocation]] | * [[bash/invocation|Invocation]] |
Contents
Invocation Modes
Mode |
Bash |
POSIX Shell |
-bash [options] |
-sh |
|
sh -l |
||
sh --login |
||
bash -c 'command' [options] |
sh [options] -c 'command' |
|
Interactive Shell |
bash -i |
sh -i |
Shell Script |
#!/bin/bash [option] |
#!/bin/sh [option] |
Command File |
bash [options] file [args] |
sh [options] file [args] |
Command Stream |
bash [options] -s [SHELL [ARGS]] |
sh [options] -s [SHELL [ARGS]] |
Login Shell
Command String
Interactive Shell
Shell Script
Command File
Command Stream
- Bash invocation modes.