Size: 74
Comment:
|
← Revision 15 as of 2017-10-20 16:46:01 ⇥
Size: 1900
Comment:
|
Deletions are marked like this. | Additions are marked like this. |
Line 1: | Line 1: |
== 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]]` || ---- GNU bash may be started in any combination of various invocation modes. These modes control: * The source from which to interpenetrate commands: * user's terminal * shell script * command string * file contents * standard input * POSIX compatibality * Login shell mode * Security settings * Restricted Shell access [[/InteractiveShell]] <<Include(/InteractiveShell, "Interactive Shell", 4, from="^----$")>> <<Include(/LoginShell, "Login Shell", 4, from="^----$")>> ==== POSIX Mode ==== ==== Command String ==== ==== Interactive Shell ==== ===== Command Line ===== ===== Prompting ===== ===== Completion ===== ===== History ===== ===== Job Control ===== ==== Shell Script ==== ==== Command File ==== ==== Command Stream ==== ==== Restricted Shell ==== ---- |
Line 3: | Line 46: |
* [[../|Invocation]] | * [[bash/invocation|Invocation]] ---- CategoryBashRef |
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]] |
GNU bash may be started in any combination of various invocation modes. These modes control:
- The source from which to interpenetrate commands:
- user's terminal
- shell script
- command string
- file contents
- standard input
- POSIX compatibality
- Login shell mode
- Security settings
- Restricted Shell access
Interactive Shell
Login Shell
- Login Shell
POSIX Mode
Command String
Interactive Shell
Command Line
Prompting
Completion
History
Job Control
Shell Script
Command File
Command Stream
Restricted Shell
- Bash invocation modes.