• Knusper@feddit.de
      link
      fedilink
      English
      arrow-up
      27
      arrow-down
      1
      ·
      edit-2
      11 months ago

      What that garble of symbols does, is that it defines and calls a function named :, which calls itself twice.

      The syntax for defining a function is different in Fish, so no, this particular garble will not work:

      But it is, of course, possible to write a (much more readable) version that will work in Fish.

      • dukk@programming.dev
        link
        fedilink
        arrow-up
        1
        ·
        11 months ago

        Doesn’t work in nushell, function syntax is different.

        Probably still possible, just written differently.