Why aren’t new terminals that use another language? It seems so antiquated getting errors for not writing the functions in the correct order among other things.

  • vi21@lemmy.ml
    link
    fedilink
    arrow-up
    0
    ·
    3 years ago

    Because people code in Bash. For example, a Makefile that I downloaded from GitHub didn’t work on my computer, since my computer’s default shell was Dash.

    The Makefile didn’t have the shebang to tell which shell is required, but it looks like a Bash script and it works on Bash.

    • Amicese@lemmy.ml
      link
      fedilink
      arrow-up
      1
      ·
      3 years ago

      The Makefile didn’t have the shebang to tell which shell is required, but it looks like a Bash script and it works on Bash.

      I think the fault is in the makefike, not that bash is commonly used.

      I use bash for interactive sessions and POSIX shell for scripts (including the shebang).