GammaM to Shell ScriptingEnglish • 10 months agoHow do you shell expand your variables and why?lemmy.worldimagemessage-square4arrow-up13arrow-down10file-textcross-posted to: programming
arrow-up13arrow-down1imageHow do you shell expand your variables and why?lemmy.worldGammaM to Shell ScriptingEnglish • 10 months agomessage-square4file-textcross-posted to: programming
minus-squaretxtsdlinkEnglish2•10 months 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.