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

This post is from 2020-09-03.

  • samsy
    link
    fedilink
    English
    11 year ago

    I love fish, only it annoys me, if I want to run a bash script.

    • @Thaurin
      link
      English
      21 year ago

      Why is that? You can still use bash to interpret your bash scripts. Where does it annoy you?

      • samsy
        link
        fedilink
        English
        11 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
          link
          English
          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
          
            • @Thaurin
              link
              English
              51 year ago

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

          • samsy
            link
            fedilink
            English
            21 year ago

            I know, well the lazyness is strong in me. Copy and paste.

            • @Thaurin
              link
              English
              5
              edit-2
              1 year ago

              Huh. It’s the first thing I write in any script. It actually saves me time. What annoys me is a script that doesn’t have a hash bang. :)