Differences between revisions 11 and 20 (spanning 9 versions)
Revision 11 as of 2023-01-22 22:34:23
Size: 788
Comment:
Revision 20 as of 2023-04-06 16:03:50
Size: 1317
Comment:
Deletions are marked like this. Additions are marked like this.
Line 29: Line 29:
== Installation ==

All [[Linux]] and [[BSD]] distributions, as well as [[MacOS]], have `sh(1)` installed.

----


Line 31: Line 39:
 * [[Shell/Alias|Alaises]]
Line 32: Line 41:
 * [[Shell/BuiltinCommands|Builtin Commands]]
 * [[Shell/Expansion|Expansion]]
 * [[Shell/FileDescriptor|File Descriptors]]
Line 33: Line 45:
 * [[Shell/JobControl|Job Control]]
Line 36: Line 49:
 * [[Shell/Quoting|Quoting]]
 * [[Shell/Redirection|Redirection]]
 * [[Shell/ShellOptions|Shell Options]]
 * [[Shell/ShellVariables|Shell Variables]]
Line 37: Line 54:
 * [[Shell/Trap|Traps]]
 * [[Shell/Variables|Variables]]

Shell

sh(1) is a POSIX compliant shell.

Several distributions of Linux actually use bash(1) or dash(1) to satisfy sh(1). BSD operating systems commonly use tcsh(1).


Example

echo "Hello, world!"

This can be executed like:

sh ./example.sh


Installation

All Linux and BSD distributions, as well as MacOS, have sh(1) installed.


Syntax


See also

The shellcheck wiki, the online reference for shellcheck(1)

Dylan's pure sh bible


CategoryRicottone

Shell (last edited 2023-04-06 16:03:50 by DominicRicottone)