Size: 1418
Comment:
|
Size: 1803
Comment:
|
Deletions are marked like this. | Additions are marked like this. |
Line 4: | Line 4: |
---- | |
Line 15: | Line 15: |
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]] |
|
Line 16: | Line 31: |
==== POSIX Mode ==== |
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 intruperate commands:
- user's terminal
- shell script
- command string
- file contents
- standard input
- POSIX compatibality
- Login shell mode
- Security settings
- Restricted Shell access
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.