I’m moving my posts from Reddit to Lemmy before delete them.

This post is from 2020-09-03.

  • Thaurin@lemmy.world
    link
    fedilink
    English
    arrow-up
    6
    ·
    edit-2
    1 year ago

    I mean, doesn’t the script have a hash bang pointing to the bash interpreter?

    #!/usr/bin/bash
    

    Or you can just run it like:

    bash script.sh
    
    • Zucca
      link
      fedilink
      English
      arrow-up
      5
      ·
      1 year ago

      #!/usr/bin/env bash for compability. 😉

      For example on my system bash is in /bin.

      • Thaurin@lemmy.world
        link
        fedilink
        English
        arrow-up
        5
        ·
        1 year ago

        Right, of course. I already do that with Python scripts, but with bash old habits die hard, I guess. :)

      • Thaurin@lemmy.world
        link
        fedilink
        English
        arrow-up
        5
        ·
        edit-2
        1 year ago

        Huh. It’s the first thing I write in any script. :) It actually saves me time.