>From the man page: Bash is largely compatible with `sh' and incorporates useful features from the Korn shell `ksh' and the C shell `csh'. It is intended to be a conformant implementation of the IEEE POSIX Shell and Tools portion of the IEEE POSIX specification (IEEE Standard 1003.1). It offers functional improvements over `sh' for both interactive and programming use.
and Starting Bash with the `--posix' command-line option or executing `set -o posix' while Bash is running will cause Bash to conform more closely to the POSIX standard by changing the behavior to match that specified by POSIX in areas where the Bash default differs. When invoked as `sh', Bash enters POSIX mode after reading the startup files. On 7 March 2017 at 22:12, René J.V. Bertin <rjvber...@gmail.com> wrote: > Hi, > > Can someone please confirm whether /bin/sh is still POSIX compliant on > 10.12.latest (i.e. `/bin/sh --version` shows it's actually bash), please? > > thanks, > René -- Yongwei Wu URL: http://wyw.dcweb.cn/