• MonkderVierte@lemmy.zip
    link
    fedilink
    arrow-up
    4
    ·
    edit-2
    13 hours ago

    Do you need POSIX compability?

    • If not, use bash-isms without shame

    But call it a bash script then! Remember: #!/bin/sh is run by all kinds of shells; consider them POSIX. Bash is #!/bin/bash.

        • cr1cket@sopuli.xyz
          link
          fedilink
          arrow-up
          3
          ·
          5 hours ago

          Well, that won’t work on openbsd (and probably freebsd), because non-default.stuff lands in /usr/local/bin.

          For Linux you should be fine though.