I came across a strange problem. If I enter in terminal cd "folder"
(with quotes around folder name), it works.
But if I use the code bellow in my bash script, it gives me an error saying that the folder doesn't exist.
path="\"folder\""
echo $path ---> outputs "folder", with quotes
cd $path
I am located in the same folder when I write cd "folder"
in terminal and when I run the script bellow.
What is the problem?
EDIT: To make myself clear. I need to use quotes around folder name because some of the folders contain spaces.