you are viewing a single comment's thread
view the rest of the comments
[–] 21 points 3 months ago

Linux doesn’t generally use extensions to decide what shell to use, so it doesn’t matter if it’s an sh file or not.

If it uses bash of course you can substitute #!/bin/bash

And of course you can use whatever shell you want, just saying that POSIX-compliance is not really relevant since the script can specify what shell it needs.

  • source
  • parent