Differences between revisions 3 and 13 (spanning 10 versions)
Revision 3 as of 2017-10-19 22:18:32
Size: 50
Comment:
Revision 13 as of 2017-10-20 05:42:46
Size: 1414
Comment:
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
<<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]]` ||
----
<<Include(/LoginShell, "Login Shell", 4, from="^----$")>>
==== Command String ====
==== Interactive Shell ====
===== Command Line =====
===== Prompting =====
===== Completion =====
===== History =====
===== Job Control =====
==== Shell Script ====
==== Command File ====
==== Command Stream ====
==== Restricted Shell ====
----
Line 2: Line 29:
 * [[../|Invocation]]  * [[bash/invocation|Invocation]]

1. Invocation Modes

Mode

Bash

POSIX Shell

LoginShell

-bash [options]

-sh

bash -l [options]

sh -l

bash --login [options]

sh --login

CommandString

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]]


1.1. Login Shell

  • Login Shell

1.2. Command String

1.3. Interactive Shell

1.3.1. Command Line

1.3.2. Prompting

1.3.3. Completion

1.3.4. History

1.3.5. Job Control

1.4. Shell Script

1.5. Command File

1.6. Command Stream

1.7. Restricted Shell


bash/invocation/mode (last edited 2017-10-20 16:46:01 by Robert Robertson)