☆ Yσɠƚԋσʂ ☆@lemmy.ml to Programmer Humor@lemmy.mlEnglish · 5 days agoLike programming in bashlemmy.mlexternal-linkmessage-square22fedilinkarrow-up11arrow-down10cross-posted to: programmer_humor@programming.dev
arrow-up11arrow-down1external-linkLike programming in bashlemmy.ml☆ Yσɠƚԋσʂ ☆@lemmy.ml to Programmer Humor@lemmy.mlEnglish · 5 days agomessage-square22fedilinkcross-posted to: programmer_humor@programming.dev
minus-square𝘋𝘪𝘳𝘬@lemmy.mllinkfedilinkarrow-up0·5 days agoI gave up Bash scripting. I explicitly do “shell scripting” now, where “shell” is implied to be a POSIX compliant shell of any type.
minus-squarefallingcats@discuss.tchncs.delinkfedilinkarrow-up0·5 days agoBut, but like … hear me out. echo $((1+1))
minus-square𝘋𝘪𝘳𝘬@lemmy.mllinkfedilinkarrow-up0·15 hours agoThat is a posixly correct method to do arithmetic expressions.
minus-squarefallingcats@discuss.tchncs.delinkfedilinkarrow-up0·14 hours agoHuh, seems you’re right. I was under the impression this wouldn’t work in dash but apparently that’s wrong.
I gave up Bash scripting. I explicitly do “shell scripting” now, where “shell” is implied to be a POSIX compliant shell of any type.
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.