GammaM to Shell ScriptingEnglish · 1 year agoHow do you shell expand your variables and why?lemmy.worldimagemessage-square4fedilinkarrow-up13arrow-down10file-textcross-posted to: programming
arrow-up13arrow-down1imageHow do you shell expand your variables and why?lemmy.worldGammaM to Shell ScriptingEnglish · 1 year agomessage-square4fedilinkfile-textcross-posted to: programming
minus-squaretxtsdlinkfedilinkEnglisharrow-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.