zephyr@lemmy.worldM to linuxmemes@lemmy.world · 2 years agoWhich way do you expand variables?lemmy.worldexternal-linkmessage-square9fedilinkarrow-up10arrow-down10
arrow-up10arrow-down1external-linkWhich way do you expand variables?lemmy.worldzephyr@lemmy.worldM to linuxmemes@lemmy.world · 2 years agomessage-square9fedilink
minus-squareRazorsLedge@lemmy.worldlinkfedilinkarrow-up0·edit-22 years agofoo=ding foobar=dong echo \$foobar Brackets make it explicit what you’re trying to do. Do you want “dingbar” or do you want “dong”? I forget what the actual behavior is if you don’t use brackets here, because I always use brackets for this reason now
foo=ding foobar=dong echo \$foobar
Brackets make it explicit what you’re trying to do. Do you want “dingbar” or do you want “dong”? I forget what the actual behavior is if you don’t use brackets here, because I always use brackets for this reason now