Quote:
Originally Posted by Saurabh78
Echo is removing extra blank spaces. See the command.
export INSTALLDIR=”First Second /Two Space”
|
First off, the two spaces aren't visible unless you put code in code tags. [ code ] stuff [ /code ] without the extra spaces in the tags.
And the reason that the extra space is lost is because the
shell splits commands apart on spaces, even if they're a single variable, nothing to do with echo. Your command, without the quotes, amounts to:
Code:
echo "First" "Second "/Two" "space"