3 ms·
Alpine docker images only come with dash instead of bash, which _may_ run your sh script, but test thoroughly. Or just install bash. FWIW, Darwin/macOS is espe
by mceachen 2y ago
Alpine docker images only come with dash instead of bash, which _may_ run your sh script, but test thoroughly. Or just install bash.
FWIW, Darwin/macOS is especially guilty of gobsmackingly ancient coreutils that don’t support long option variants.
- samatman 2y agoIs it? I'm with you on gobsmackingly ancient, but it's "doesn't support long options" which I haven't bumped into. I do replace some coreutils, but not all of them. What's a good example of such a utility?
- skissane 2y agoFor example, sed. macOS sed doesn't support long options. Not even --help or --version (Running an older version of macOS so can't completely exclude this has been updated in a newer version, but I'd be surprised to learn that was true.)
- dfe 2y agomacOS doesn't have GNU coreutils at all. It has the utils from FreeBSD. The gobsmackingly ancient GNU software it does have is bash, because it's the last version under GPL 2. I've used Mac OS X since 10.1, so I remember when the default shell was tcsh and /bin/sh was not bash. That's (basically) the case again on the last few macOS releases. Today, zsh is my shell of choice, including on Linux.
- hulitu 2y agoP in POSIX stands for portability. ,/s
- pingiun 2y agothe alpine default shell is called "ash", "dash" is the debian/ubuntu default shell