Remix.run Logo
Ferret7446 5 hours ago

The article actually mentions this in passing, but POSIX will default to running the file with the system shell if it's not an executable binary. So hashbang scripts can work even if the system doesn't support hashbangs (as long as the script is in shell).

See also https://www.felesatra.moe/blog/2021/07/03/portable-bash-sheb...