• Artwork@lemmy.world
    link
    fedilink
    English
    arrow-up
    2
    arrow-down
    1
    ·
    edit-2
    16 hours ago

    I still don’t get what you mean, sorry. And why Bash and not another shell?
    Why not Korn, Ash, Dash, Zsh, Fish, or anything REPL, including PHP, Perl, Node, Python etc.

    Should we consider “throwaway” anything that supports interactive mode of your daily driver you chose in your default terminal prompt?
    What does “throwaway” code means in the first place?

      • caseyweederman@lemmy.ca
        link
        fedilink
        English
        arrow-up
        3
        arrow-down
        1
        ·
        15 hours ago

        Yeah, I went back through this reply chain and I couldn’t find any explicit evidence that they’re talking about shell scripting at all, and perhaps think that the “bash programming language” refers to a general style, i.e. “to bash stuff together until it works”.

    • tal@lemmy.today
      link
      fedilink
      English
      arrow-up
      2
      arrow-down
      1
      ·
      14 hours ago

      And why Bash and not another shell?

      I chose it for my example because I happen to use it. You could use another shell, sure.

      Should we consider “throwaway” anything that supports interactive mode of your daily driver you chose in your default terminal prompt?

      Interactive mode is a good case for throwaway code, but one-off scripts would also work.

      • Artwork@lemmy.world
        link
        fedilink
        English
        arrow-up
        1
        arrow-down
        1
        ·
        edit-2
        14 hours ago

        If you want to actually realize the amount of possible misunderstanding in the current conversation and of what shell scriting is, please do consider joining #bash at Libera IRC. Please do also mention the word “throwaway” in the rooms! Since there’s literally no understanding on what you mean still, sorry. It does not feel like you have a significant enough understanding of the subjects raised.

        For a very simple example, there are literally no documentation regarding certain cases you’ll encounter in Bash’s built-ins even, unless you actually encounter it or learn from Bash’s very source code, like read built-in. Not to mention shenanigans in shell logics for inter-process communication (IPC), file-descriptors, environment variables like PWD, exported functions’ BASH_FUNC_, pipes, etc.