zephyr@lemmy.worldM to linuxmemes@lemmy.world · 1 year agoWhich way do you expand variables?lemmy.worldimagemessage-square21fedilinkarrow-up1103
arrow-up1103imageWhich way do you expand variables?lemmy.worldzephyr@lemmy.worldM to linuxmemes@lemmy.world · 1 year agomessage-square21fedilink
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.