Differences between revisions 1 and 6 (spanning 5 versions)
Revision 1 as of 2022-05-21 04:08:58
Size: 297
Comment:
Revision 6 as of 2023-01-20 17:23:34
Size: 451
Comment:
Deletions are marked like this. Additions are marked like this.
Line 3: Line 3:
The core, POSIX-compliant shell on any *nix system. `sh(1)` is a POSIX compliant shell.
Line 5: 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 13: Line 13:
== Example ==

{{{
echo "Hello, world!"
}}}

This can be executed like:

{{{
sh ./example.sh
}}}

----


Line 15: Line 31:
 * [[Sh/Tests|Tests]]  * [[Shell/Logic|Logic]]
 * [[Shell
/Test|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 2023-04-06 16:03:50 by DominicRicottone)