zephyr@lemmy.worldM to linuxmemes@lemmy.world · 1 year agoWhich way do you expand variables?lemmy.worldimagemessage-square12fedilinkarrow-up193arrow-down12
arrow-up191arrow-down1imageWhich way do you expand variables?lemmy.worldzephyr@lemmy.worldM to linuxmemes@lemmy.world · 1 year agomessage-square12fedilink
minus-squareRazorsLedge@lemmy.worldlinkfedilinkarrow-up2·edit-21 year 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