Thanks to visit codestin.com
Credit goes to programming.dev

My primary use case for Amber is when I need to write a Bash script but don’t remember the silly syntax. My most recent Bash mistake was misusing test -n and test -z. In Amber, I can just use something == "" or len(something) == 0

  • Victor@lemmy.world
    Codestin Search App
    Codestin Search App
    Codestin Search App
    2
    ·
    1 个月前

    I just installed fish shell a few years ago. Best scripting language I’ve come across. No need to remember all this weird bash syntax you have to look up every time you want to use it. All of fish shell fits in your working memory, seriously. It’s tiny.

      • Victor@lemmy.world
        Codestin Search App
        Codestin Search App
        Codestin Search App
        2
        ·
        1 个月前

        In which way is it weird? It’s different, but how is it weird?

        No need to apologize, you’re allowed your opinions and feelings.

        I would suggest reading the manual page for argparse thoroughly from top to bottom of you haven’t already. I struggled with argparse at first too, but it’s because I skimmed the manual instead of reading it.

        I would also read through all of the manual, and you’ll find useful idiomatic fish things like not setting PATH directly, but using fish_add_path, among other things. 👍