Differences between revisions 6 and 14 (spanning 8 versions)
Revision 6 as of 2017-10-20 01:10:55
Size: 767
Comment:
Revision 14 as of 2017-10-20 16:25:31
Size: 1803
Comment:
Deletions are marked like this. Additions are marked like this.
Line 4: Line 4:
----
||<tablewidth="95%" tablestyle="text-align:center"20% #cccccc style="text-align:right">Mode ||<40% #cccccc style="text-align:left;text-align:left">Bash ||<40% #cccccc style="text-align:left">POSIX Shell ||

||<) tablewidth="100%" tablestyle="background-color: #E8E8FF;" rowstyle="background-color: #CCCCCC" 20% >'''Mode''' ||<(40%>'''Bash''' ||<(40%>'''POSIX Shell''' ||
Line 7: Line 7:
||<(>`bash` [[../option/l|-l]] `[`[[../option|options]]`]` ||<(> `sh -l` || ||<( rowstyle="background-color: #f8f8ff">`bash` [[../option/l|-l]] `[`[[../option|options]]`]` ||<(> `sh -l` ||
Line 10: Line 10:
||<)>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 intruperate commands:
  * user's terminal
  * shell script
  * command string
  * file contents
  * standard input
 * POSIX compatibality
 * Login shell mode
 * Security settings
 * Restricted Shell access
Line 11: Line 28:
[[/InteractiveShell]]
Line 12: Line 30:
<<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 ====

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


GNU bash may be started in any combination of various invocation modes. These modes control:

  • The source from which to intruperate commands:
    • user's terminal
    • shell script
    • command string
    • file contents
    • standard input
  • POSIX compatibality
  • Login shell mode
  • Security settings
  • Restricted Shell access

/InteractiveShell

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/mode (last edited 2017-10-20 16:46:01 by Robert Robertson)