• Artwork@lemmy.world
    link
    fedilink
    English
    arrow-up
    1
    ·
    4 days ago

    Thank you, but… why not just write in Bash, or the shell you prefer? Why learn a yet another opinionated wrapper?

    Yes, Bash or any shell is a very complex and utterly environment dependent language to approach with all due care for security and compatibility, yet hence the lack of wrapper that may not even be aware of these crucial cases at all.

    • setsubyou@lemmy.world
      link
      fedilink
      English
      arrow-up
      1
      ·
      4 days ago

      I would have had a use case for something like this but compiling to portable POSIX sh instead of bash about 15-ish years ago when I was still writing scripts that needed to run on many different flavors of commercial UNIX.

      Only bash makes it much less useful to me.

      • Artwork@lemmy.world
        link
        fedilink
        English
        arrow-up
        1
        ·
        4 days ago

        Indeed, the most commentators at HackerNews seems to have no idea what they are talking about, including those who replied to my comment.

        I would ask them in return if HackerNews would have proper notifications to monitor for the answer after, for example:
        - How would do you get the current script file path in Bash safely?

        Then, I do believe that just a few would respond at least something remotely appropriate.