cm0002@lemmy.world to Programmer Humor@programming.dev · 2 years agoLike programming in bashlemmy.mlimagemessage-square130linkfedilinkarrow-up11.31Karrow-down113
arrow-up11.3Karrow-down1imageLike programming in bashlemmy.mlcm0002@lemmy.world to Programmer Humor@programming.dev · 2 years agomessage-square130linkfedilink
minus-square_stranger_@lemmy.worldlinkfedilinkarrow-up21·2 years agoIt’s more like bash did it one way and everyone who came after decided that was terrible and should be done a different way (for good reason). Looking right at you -eq and your weird ass syntax if [[ $x -eq $y ]]
minus-squareirelephant [he/him]🍭@lemm.eelinkfedilinkEnglisharrow-up11·2 years agoThat was the point where I closed the bash tutorial I was on, and decided to just use python and subprocess.run()
minus-squareVictor@lemmy.worldlinkfedilinkarrow-up7·2 years ago -eq Yeah, like infix, so between operands, but dashed like a flag so should come before arguments. Very odd.
minus-squareAppoxo@lemmy.dbzer0.comlinkfedilinkarrow-up4·2 years agoYou better not look at powershell in that case :p
It’s more like bash did it one way and everyone who came after decided that was terrible and should be done a different way (for good reason).
Looking right at you -eq and your weird ass syntax
if [[ $x -eq $y ]]That was the point where I closed the bash tutorial I was on, and decided to just use python and
subprocess.run()Yeah, like infix, so between operands, but dashed like a flag so should come before arguments. Very odd.
You better not look at powershell in that case :p