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

This post is from 2020-09-03.

  • samsy@feddit.de
    link
    fedilink
    English
    arrow-up
    1
    ·
    1 year ago

    I have to switch to bash first, and wonder days later, why I can’t find it (obviously) in my fish history.

    • 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@sopuli.xyz
        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.