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


Login Shell

Command String

Interactive Shell

Prompting

Shell Script

Command File

Command Stream