I will add a link to the table of contents of the
POSIX specification of the Shell Command Language of which BASH is an implementation with additions (also known as POSIX extensions). As stated in "man bash" BASH can behave exactly as stated in the aforementioned document, using the --posix option:
Code:
--posix
Change the behavior of bash where the default operation differs from the POSIX standard to
match the standard (posix mode). See SEE ALSO below for a reference to a document that
details how posix mode affects bash's behavior.
This can be useful for people wanting to write so-called "portable" shell scripts, i.e. than can run the same way using any POSIX compliant shell, not only BASH (which is the most common, but not ubiquitous).