Differences between revisions 2 and 20 (spanning 18 versions)
Revision 2 as of 2023-01-09 05:07:05
Size: 326
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 1: Line 1:
## page was renamed from Sh
Line 4: Line 3:
The core, POSIX-compliant shell on any *nix system. `sh(1)` is a POSIX compliant shell.
Line 6: Line 5:
Originally `sh(1)`, several distribution of Linux ''actually'' use `bash(1)` or `dash(1)`. BSDs trend towards `tcsh(1)`. Several distributions of [[Linux]] actually use `bash(1)` or `dash(1)` to satisfy `sh(1)`. [[BSD]] operating systems commonly use `tcsh(1)`.
Line 14: Line 13:
== 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.

----


Line 16: Line 39:
 * [[Sh/Tests|Tests]]  * [[Shell/Alias|Alaises]]
 * [[Shell/Arithmetic|Arithmetic]]
 * [[Shell/BuiltinCommands|Builtin Commands]]
 * [[Shell/Expansion|Expansion]]
 * [[Shell/FileDescriptor|File Descriptors]]
 * [[Shell/Function|Functions]]
 * [[Shell/JobControl|Job Control]]
 * [[Shell/Logic|Logic]]
 * [[Shell/Looping|Looping]]
 * [[Shell/Pipeline|Pipelines]]
 * [[Shell/Quoting|Quoting]]
 * [[Shell/Redirection|Redirection]]
 * [[Shell/ShellOptions|Shell Options]]
 * [[Shell/ShellVariables|Shell Variables]]
 * [[Shell/Test|Tests]]
 * [[Shell/Trap|Traps]]
 * [[Shell/Variables|Variables]]

----



== See also ==

[[https://www.shellcheck.net/wiki/|The shellcheck wiki]], the online reference for `shellcheck(1)`

[[https://github.com/dylanaraps/pure-sh-bible|Dylan's pure sh bible]]

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)