-
Notifications
You must be signed in to change notification settings - Fork 49
bash boilerplate
Ilya Sher edited this page Jul 24, 2025
·
4 revisions
This page list code comparisons between bash and Next Generation Shell, specifically ones that are longer in bash (or longer when implemented correctly as opposed to usually).
Note this is WIP.
In many scripts, we see something like this function:
exit_with_message () {
echo $1 >&2
exit 1
}
Specifically this snippet is from alexzautke/install-fhir-packages/install-fhir-packages.sh
In NGS, code that is very similar to exit_with_message
is already in the standard library. Code like exit_with_message
should never appear in your NGS script.
Use: exit("your own message")
NGS official website is at https://ngs-lang.org/