• @Sprokes
    link
    197 months ago

    Does it work on fish shell?

    • @Knusper@feddit.de
      link
      fedilink
      English
      26
      edit-2
      7 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
        17 months ago

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

        Probably still possible, just written differently.