Differences between revisions 2 and 4 (spanning 2 versions)
Revision 2 as of 2023-01-09 05:07:05
Size: 326
Comment:
Revision 4 as of 2023-01-20 17:15:05
Size: 426
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
}}}

----


Line 16: Line 31:
 * [[Sh/Tests|Tests]]  * [[Shell/Tests|Tests]]

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


Syntax


CategoryRicottone

Shell (last edited 2025-12-19 21:36:37 by DominicRicottone)