HNHacker News
TopNewBestAskShowJobs

ko1nksm

8 karma · joined March 9, 2019

submissionscomments
ko1nksm··on The Unix Pipe Card Game
The great thing about this game is that whoever knows UUoC will be the winner.

cat file.txt | tr a-z A-Z | sort (loser)

tr < file.txt a-z A-Z | sort (winner!)

ko1nksm··on Posix.1-2024 is published
> One of the problems with Bash is that it insists on doing bash-y things even when you tell it to act like sh.

Its behaviour is a common behaviour of all sh, not just Bash.

ko1nksm··on Posix.1-2024 is published
No. No new locations added in POSIX.1-2024.

https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1...

POSIX omits from standardisation what is not necessary for an application to work, so that a wide range of systems can be supported. As for Shebang, it can be rewritten in the installation script and is therefore considered an area of system administration.

ko1nksm··on Posix.1-2024 is published
set -o pipefail is now POSIX compliant. Use it in all POSIX shell scripts, not just bash scripts.
ko1nksm··on Posix.1-2024 is published
No. https://www.austingroupbugs.net/view.php?id=767
ko1nksm··on Write Posix Shell
Why not install bash and GNU utilities?
ko1nksm··on Please stop writing shell scripts
A full-featured BDD unit testing framework for bash, ksh, zsh, dash and all POSIX shells

https://github.com/shellspec/shellspec

ko1nksm··on Bash_unit – bash unit testing framework
There are platforms where bash is not available. I wonder why people who want to run it on various platforms use bash.

ShellSpec (https://shellspec.info/) is a POSIX compliant testing framework supports all POSIX shells (Bash >= 2.0, dash, ksh88, zsh >=3.1, etc). I'm the author of ShellSpec.