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

help-circle








  • 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
    8 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.