Gamma@programming.devM to Shell Scripting@programming.devEnglish · 1 year agoHow do you shell expand your variables and why?lemmy.worldimagemessage-square4fedilinkarrow-up13file-textcross-posted to: programming@programming.dev
arrow-up13imageHow do you shell expand your variables and why?lemmy.worldGamma@programming.devM to Shell Scripting@programming.devEnglish · 1 year agomessage-square4fedilinkfile-textcross-posted to: programming@programming.dev
minus-squaretxtsd@programming.devlinkfedilinkEnglisharrow-up2·1 year agoI always brace my variables. While I also use ZSH, I write most of my scripts in bash because they more often than not need to run on a CI/CD server.
I always brace my variables.
While I also use ZSH, I write most of my scripts in bash because they more often than not need to run on a CI/CD server.