Differences between revisions 7 and 14 (spanning 7 versions)
Revision 7 as of 2017-10-20 01:48:59
Size: 1235
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:
----
Line 15: Line 15:
==== Login Shell ==== 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]]

<<Include(/LoginShell, "Login Shell", 4, from="^----$")>>
==== POSIX Mode ====
Line 18: Line 34:
===== Command Line =====
===== Prompting =====
===== Completion =====
===== History =====
===== Job Control =====
Line 21: Line 42:
==== Restricted Shell ====

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


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

1.1. Login Shell

  • Login Shell

1.2. POSIX Mode

1.3. Command String

1.4. Interactive Shell

1.4.1. Command Line

1.4.2. Prompting

1.4.3. Completion

1.4.4. History

1.4.5. Job Control

1.5. Shell Script

1.6. Command File

1.7. Command Stream

1.8. Restricted Shell


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