• 0 Posts
  • 21 Comments
Joined 1 year ago
cake
Cake day: August 6th, 2023

help-circle



  • Ok I’ll bite, I’ve had Brit coworkers try to draw me into their tea cult with Yorkshire tea which they “promised” me was like crack in a cup.

    Note before you say I didn’t make it right I have an electric tea kettle with options for all tea types and I steep things like black tea for 4 minutes as is recommended.

    It was… ok, not worth the bother if I’m honest. I’ll stick to matcha or Japanese green tea personally.

    But I will yeet any British tea into the nearest harbor out of spite to being told tea is the best beverage ever.









  • I grew up on a farm, any programmer that thinks farming or ranching is better is gonna have a rude awakening as to why there are very few farmers anymore.

    So no not every computer guy dreams of the farm, repairing 10miles of fence every April for the entire month all day every day isn’t what I would consider an improvement over programming. And that’s the easy part wait till you gotta help an animal struggling to give birth.

    I get programmers have this idea that farming or ranching is more pure somehow but it is murder on your body and soul in ways you wont understand. programming and computer stuff is a cakewalk in comparison. more politics but learn to play the game of thrones and its not too bad.








  • mitchty@lemmy.sdf.orgtolinuxmemes@lemmy.worldRussian delete
    link
    fedilink
    arrow-up
    1
    ·
    edit-2
    5 months ago

    Key here is the outer [] and interaction of $[], test doesn’t have == by default in standard posix, so no this isn’t posix shell or bourne compatible. Tis but another bashism. I could probably force zsh into a more bourne mode to try it but its definitely not portable bourne shell its bash.

    $ [ $[ $RANDOM % 6 ] == 0 ] && echo rm || echo ok
    zsh: = not found
    $ zsh --version
    zsh 5.9 (x86_64-pc-linux-gnu)
    

    == should be -eq for this to be posix/bourne portable, you could use = but -eq is for numeric comparisons so not quite right.