☆ Yσɠƚԋσʂ ☆@lemmy.ml to Programmer Humor@lemmy.mlEnglish · 2 months agoLike programming in bashlemmy.mlimagemessage-square24linkfedilinkarrow-up11arrow-down10cross-posted to: [email protected]
arrow-up11arrow-down1imageLike programming in bashlemmy.ml☆ Yσɠƚԋσʂ ☆@lemmy.ml to Programmer Humor@lemmy.mlEnglish · 2 months agomessage-square24linkfedilinkcross-posted to: [email protected]
minus-squarefallingcats@discuss.tchncs.delinkfedilinkarrow-up0·2 months agoBut, but like … hear me out. echo $((1+1))
minus-square𝘋𝘪𝘳𝘬@lemmy.mllinkfedilinkarrow-up0·1 month agoThat is a posixly correct method to do arithmetic expressions.
minus-squarefallingcats@discuss.tchncs.delinkfedilinkarrow-up0·1 month agoHuh, seems you’re right. I was under the impression this wouldn’t work in dash but apparently that’s wrong.
But, but like … hear me out.
echo $((1+1))
That is a posixly correct method to do arithmetic expressions.
Huh, seems you’re right. I was under the impression this wouldn’t work in dash but apparently that’s wrong.