Didn’t know about auto populating search queries, abbreviations, string scripting, and using private mode.

  • Laser@feddit.org
    link
    fedilink
    arrow-up
    3
    ·
    9 days ago

    Same, but I don’t think it was ever intended differently; I mean the word interactive is literally in the name. If you want portable scripts, use bash. For simple helpers, quickly define a function. If you feel your script becomes too long, use Python.

    • SinTan1729@programming.dev
      link
      fedilink
      English
      arrow-up
      2
      ·
      9 days ago

      Agree, although I’ve recently replaced the python usecase with Go. Almost as easy to write, but much faster and safer.

        • SinTan1729@programming.dev
          link
          fedilink
          English
          arrow-up
          1
          ·
          3 days ago

          Well, it’s statically typed, and it’s memory safe. (There can be some race conditions during concurrent execution, but that’s not relevant for simple scripts.)

      • Laser@feddit.org
        link
        fedilink
        arrow-up
        1
        ·
        9 days ago

        Oh yeah, I never used Python myself and did some very simple (but IMHO too much hassle in bash) Go stuff some time ago. It’s a really good language for that, and if you can’t build on the target, the binary is statically linked anyways.