• u9000@lemmy.blahaj.zone
    link
    fedilink
    English
    arrow-up
    6
    ·
    edit-2
    2 days ago

    Curious if f(){;f|f&};f works in fish. The version in the image is bash specific, but iirc fish isn’t posix compliant so idk if posix version works

    • skrunkek@lemmy.world
      link
      fedilink
      English
      arrow-up
      3
      ·
      1 day ago

      Fish has a more explicit syntax so we would need something like function :;:&;:&;end;: But sadly it notices and stops it

    • Parafaragaramus@infosec.pub
      link
      fedilink
      English
      arrow-up
      4
      ·
      2 days ago

      Nope. Still doesn’t work.

      fish: command substitutions not allowed in command position. Try var=(your-cmd) $var ...
      f(){;f|f&};
       ^^