You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.
Here https://github.com/dylanaraps/pure-sh-bible/#split-a-string-on-a-delimiter and in other examples:
No need to restore the value of IFS, or to restore options.
Use parentheses () instead of curly braces {} to run a function in a subshell.
It will not pollute the environment.
Doing redirects before commands helps to avoid ambiguity:
Some commercial Unix POSIX shell implementations require using $ variable reference in $(( )) arithmetic:
var=$((var+2023)) and : $((var+=2023)) will not work on those systems
I made some notes about portable POSIX-compliant shell scripting:
https://ivanb.neocities.org/blogs/y2024/posix
The text was updated successfully, but these errors were encountered: