4 ms·
And to make things interesting Ubuntu uses dash as sh https://wiki.ubuntu.com/DashAsBinSh https://wiki.ubuntu.com/DashAsBinSh
by davewongillies 9y ago
And to make things interesting Ubuntu uses dash as sh
https://wiki.ubuntu.com/DashAsBinSh https://wiki.ubuntu.com/DashAsBinSh
- OJFord 9y ago`sh` is only supposed to be _a_ POSIX-compliant shell, it's not odd/interesting/confusing that Ubuntu uses dash any more than it is that something else uses bash. The shebang line #!/bin/sh should only be used for POSIX-compliant scripts; if it needs {bash, dash, python, etc.} it should start #!/usr/bin/env {bash, dash, python, etc.}.
- yjftsjthsd-h 9y agoIn fairness, that's just for sh; if for some reason you actually need bash you can just use `#!/usr/bin/env bash`
- mjevans 9y agoIf you actually //need// bash ask for it, not sh. This comes from more armature script authors not being precise enough with requirements, or not targeting the more common and portable spec.