zephyr@lemmy.worldM to linuxmemes@lemmy.world · 1 year agoWhich way do you expand variables?lemmy.worldimagemessage-square9fedilinkarrow-up196arrow-down12
arrow-up194arrow-down1imageWhich way do you expand variables?lemmy.worldzephyr@lemmy.worldM to linuxmemes@lemmy.world · 1 year agomessage-square9fedilink
minus-squareDoomBot5@lemmy.worldlinkfedilinkEnglisharrow-up8·1 year agoFirst one has the pitfall of a space at the end of the variable still causing it to fail.
minus-squarevenusenvy47@lemdro.idlinkfedilinkEnglisharrow-up1·1 year agoWould a space at the end of the variable be ignored in the second one, though?
minus-squareDoomBot5@lemmy.worldlinkfedilinkEnglisharrow-up1·1 year agoIt would still be considered a single variable because the entire string is quoted. The first scenario would have split it into 2 variables.
First one has the pitfall of a space at the end of the variable still causing it to fail.
Would a space at the end of the variable be ignored in the second one, though?
It would still be considered a single variable because the entire string is quoted. The first scenario would have split it into 2 variables.