Which Shells Are Posix Compliant?

Some popular shell languages are POSIX-compliant (Bash, Korn shell

Korn shell
KornShell ( ksh ) is a Unix shell which was developed by David Korn at Bell Labs in the early 1980s and announced at USENIX on July 14, 1983. The initial development was based on Bourne shell source code.
› wiki › KornShell
), but even they offer additional non-POSIX features which will not always function on other shells.

Is the Bourne shell POSIX compliant?

Bash (the Bourne-Again shell) was developed in 1989 for the GNU project and incorporates features from the Bourne shell, csh, and ksh. It is meant to be POSIX-compliant.

Is bash a POSIX shell?

Bash is POSIX-conformant, even where the POSIX specification differs from traditional sh behavior (see Bash POSIX Mode). Bash has multi-character invocation options (see Invoking Bash). Bash has command-line editing (see Command Line Editing) and the bind builtin. ... Bash provides a number of built-in array variables.

Maya Lin-Takahashi

Maya Lin-Takahashi

Consumer Tech & Gadget Reviewer

Maya is a hardware enthusiast who tests and reviews smart home devices, smartphones, wearables, and audio gear. She focuses on practical consumer value and build quality.