3 ms·
No, it isn't. You have to explicitly enable a POSIX-compliant mode: https://www.gnu.org/software/bash/manual/html_node/Bash-POSIX-Mode.html https://www.gnu.org
by kick 7y ago
No, it isn't. You have to explicitly enable a POSIX-compliant mode:
https://www.gnu.org/software/bash/manual/html_node/Bash-POSIX-Mode.html https://www.gnu.org/software/bash/manual/html_node/Bash-POSI...
- saagarjha 7y agoThat still makes it POSIX compliant…
- kick 7y agoIf you have to set a mode to make it so, it isn't.
- throwaheyy 7y agoNo, it is. An x86-64 CPU boots in 16-bit real mode. An explicit option has to be used to switch it to 64-bit long mode. That doesn’t mean that it’s not a 64-bit CPU.
- deleted 7y ago[deleted]
- wizzwizz4 7y agoWhen executed as /bin/sh, Bash enables POSIX mode automatically. /bin/bash isn't POSIX compliant by default, but /bin/sh symlinked to /bin/bash is, so you can be sure that #!/bin/sh will be POSIX-like even when implemented by Bash.
- kps 7y agoNot entirely. $ echo I am posix compliant &>/dev/null
- deleted 7y ago[deleted]