minus-squareRazorsLedge@lemmy.worldtolinuxmemes@lemmy.world•Which way do you expand variables?linkfedilinkarrow-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 linkfedilink
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