Gamma@programming.devM to Shell Scripting@programming.devEnglish · 3 years 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 · 3 years agomessage-square4fedilinkfile-textcross-posted to: programming@programming.dev
minus-squaretxtsd@programming.devcakelinkfedilinkEnglisharrow-up2·3 years 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.