• Hawke@lemmy.world
    link
    fedilink
    arrow-up
    10
    ·
    5 hours 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.