• smiletolerantly@awful.systems
    link
    fedilink
    arrow-up
    56
    arrow-down
    3
    ·
    3 days ago

    I just wish fish would accept standard bash syntax in addition.

    Like, if you can warn me that “this is not how we set vars in fish, do this instead!” then you could also just, you know, do it.

    • EponymousBosh@feddit.online
      link
      fedilink
      English
      arrow-up
      5
      arrow-down
      1
      ·
      edit-2
      1 day ago

      Our last apartment had a microwave that insisted that the off/cancel button was ONLY for the microwave part and NOT the timer part, and if you tried to use it to turn off the timer, would display a message saying “push timer button to turn timer off” (or smth to that effect). I found it infuriating. I told my wife, “if they can program it to sass me, they can program it to turn the damn timer off.”

      Anyway. I get it.

    • lime!@feddit.nu
      link
      fedilink
      arrow-up
      29
      ·
      3 days ago

      yea but the posix sh set syntax is atrocious so not supporting it is doing you a favor

    • nialv7@lemmy.world
      link
      fedilink
      arrow-up
      15
      arrow-down
      2
      ·
      edit-2
      3 days ago

      I just wish my local restaurant would accept burger orders in addition.

      Like, if you can warn me that “this is a Chinese noodle restaurant, we don’t do burger here. Order one of these instead!” then you could also just, you know, make me a burger!

      • smiletolerantly@awful.systems
        link
        fedilink
        arrow-up
        7
        ·
        2 days ago

        That analogy only holds if they cook the burger for you, hold it in front of you, and go “we don’t make this”, then throwing it out

        • nialv7@lemmy.world
          link
          fedilink
          arrow-up
          5
          ·
          2 days ago

          No, it’d be like, when you asked them do you know what a burger is? They pointed at a picture of a burger on the wall (they put this picture on the wall because for whatever reason people kept asking them to make burgers), and told you, of course we know what a burger is, we don’t make them, now order noodles or get out!

          • smiletolerantly@awful.systems
            link
            fedilink
            arrow-up
            1
            ·
            2 days ago

            Okay, you know what… That’s actually better than what I said. Defeat acknowledged.

            (However, it still seems a bit silly to me. name="value" will prompt you to enter set name "value", with your exact name/value prefilled. As far as I know, it really is just syntax substitution; or am I wrong here? Are there semantic differences that can’t be translated?)

            • nialv7@lemmy.world
              link
              fedilink
              arrow-up
              2
              ·
              2 days ago

              i think it could be a slippery slope thing. things like name="value" are easy to parse and implement, but then what if people keep asking for a little bit more, and a little bit more again? bash’s syntax is very very complex, there will be no winners if fish has a half-assed implementation of what bash does, it’s better to not even start.