Yes! I’ve found myself doing this both personally and professionally. At work we’re using Docker and Kubernetes but the old way of thinking is assuming everything is Debian or Ubuntu so a lot of Bash scripts just break on Alpine-based containers.
But even for those scripts we execute primarily on macOS, I’ve taken the liberty of making them POSIX compliant because you never know who’s using Bash, zsh, sh or what have you.
I’ve remade a handful of GNU extensions as POSIX scripts/functions. I also just enjoy trying to be as minimal as possible and building my own tools. It helps me understand how operating systems in the process too
Yes! I’ve found myself doing this both personally and professionally. At work we’re using Docker and Kubernetes but the old way of thinking is assuming everything is Debian or Ubuntu so a lot of Bash scripts just break on Alpine-based containers.
But even for those scripts we execute primarily on macOS, I’ve taken the liberty of making them POSIX compliant because you never know who’s using Bash, zsh, sh or what have you.
I do like the challenge of POSIX scripts.
I’ve remade a handful of GNU extensions as POSIX scripts/functions. I also just enjoy trying to be as minimal as possible and building my own tools. It helps me understand how operating systems in the process too
Most of my work is on codeberg
It can be a challenge though since all searches default to bash/GNU extensions