Personally I have the following problem: I need in my script to store a path of an X directory in a variable. The big problem is that one of the folders in this path contains space in the name and for some reason when calling the variable it gives a conflict in the directory with space. Ex:
If I use it this way:
cd "/home/douglas/Minha Pasta"
But if so, it does not work:
home="/home/douglas/Minha Pasta"
cd $home
Does anyone know how I can resolve this?