Short answer: Word-splitting .
If you have this
export OGRE_ANDROID_ROOT=/home/piperoman/Librerias/Ogre\ Android\ SDK
The environmental variable contains "/ home / piperoman / Librerias / Ogre Android SDK".
If you use it without quotation marks, Bash will split the line into words based on the IFS environment variable - by default, the tab, space and newlines.
So
cd $OGRE_ANDROID_ROOT
equivalently
cd "/home/piperoman/Librerias/Ogre" "Android" "SDK"
So you should quote it, i.e. "$OGRE_ANDROID_ROOT"
source share