cm0002@lemmy.world to Programmer Humor@programming.dev · 2 months agoLike programming in bashimagemessage-square166linkfedilinkarrow-up11arrow-down10cross-posted to: programmerhumor@lemmy.ml
arrow-up11arrow-down1imageLike programming in bashcm0002@lemmy.world to Programmer Humor@programming.dev · 2 months agomessage-square166linkfedilinkcross-posted to: programmerhumor@lemmy.ml
minus-square_stranger_@lemmy.worldlinkfedilinkarrow-up0·2 months 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-squareVictor@lemmy.worldlinkfedilinkarrow-up0·2 months ago -eq Yeah, like infix, so between operands, but dashed like a flag so should come before arguments. Very odd.
minus-squareirelephant [he/him]🍭@lemm.eelinkfedilinkEnglisharrow-up0·edit-22 months agoThat was the point where I closed the bash tutorial I was on, and decided to just use python and subprocess.run()
minus-squareAppoxo@lemmy.dbzer0.comlinkfedilinkarrow-up0·2 months 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 ]]
Yeah, like infix, so between operands, but dashed like a flag so should come before arguments. Very odd.
That was the point where I closed the bash tutorial I was on, and decided to just use python and
subprocess.run()
You better not look at powershell in that case :p