Hacker News new | ask | show | jobs
by SAI_Peregrinus 1939 days ago
True, but there do exist (crappy) scrips with incorrect shebangs. EG specifying `#!/bin/sh` when they should use `#!/usr/bin/env bash`, since `/bin/sh` isn't necessarily bash. Could be dash. Could be fish. Could be oil. Etc.)
1 comments

I think /bin/sh is required to be a POSIX shell, at least when invoked with that name, and fish wouldn’t qualify.