673
You should (lemmy.ohaa.xyz)
submitted 11 months ago by Oha@lemmy.ohaa.xyz to c/linuxmemes@lemmy.world
you are viewing a single comment's thread
view the rest of the comments
[-] Knusper@feddit.de 25 points 11 months ago* (last edited 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.

[-] ReveredOxygen@sh.itjust.works 21 points 11 months ago

you can write a more readable version in any shell, it's intentionally unreadable

[-] Knusper@feddit.de 11 points 11 months ago* (last edited 11 months ago)

Yeah, I meant, as an attacker, you couldn't come up with a similarly unreadable version.

At least, as far as I can tell, defining a function requires spelling out function and seems to require being defined on multiple lines, too.

[-] ReveredOxygen@sh.itjust.works 3 points 11 months ago

Oh, I see. That's very nice then

[-] cashews_best_nut@lemmy.world 4 points 11 months ago

Unfortunately it works in zsh. I just had to kill my laptop after curiosity got the better of me.

[-] affiliate@lemmy.world 4 points 11 months ago

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

the gentleman hacker

[-] Karyoplasma@discuss.tchncs.de 2 points 11 months ago

The ampersand looks very weird in that font. It would bug me.

[-] Knusper@feddit.de 1 points 11 months ago* (last edited 11 months ago)

It hails back to the early days of the ampersand, from when it was basically still just Latin "et": https://commons.wikimedia.org/wiki/File:Trebuchet_MS_ampersand.svg

Personally, I do like this font (Fira Mono+Sans), because it still looks professional, without being so boring that I get depression from looking at it.
But yeah, that ampersand is pushing it a bit, as I'm not sure everyone else knows that's an ampersand...

this post was submitted on 03 Dec 2023
673 points (95.3% liked)

linuxmemes

21222 readers
73 users here now

Hint: :q!


Sister communities:


Community rules (click to expand)

1. Follow the site-wide rules

2. Be civil
  • Understand the difference between a joke and an insult.
  • Do not harrass or attack members of the community for any reason.
  • Leave remarks of "peasantry" to the PCMR community. If you dislike an OS/service/application, attack the thing you dislike, not the individuals who use it. Some people may not have a choice.
  • Bigotry will not be tolerated.
  • These rules are somewhat loosened when the subject is a public figure. Still, do not attack their person or incite harrassment.
  • 3. Post Linux-related content
  • Including Unix and BSD.
  • Non-Linux content is acceptable as long as it makes a reference to Linux. For example, the poorly made mockery of sudo in Windows.
  • No porn. Even if you watch it on a Linux machine.
  • 4. No recent reposts
  • Everybody uses Arch btw, can't quit Vim, and wants to interject for a moment. You can stop now.

  • Please report posts and comments that break these rules!

    founded 1 year ago
    MODERATORS