I\'m using Bash on macOS X and I\'d like to create a simple executable script file that would change to another directory when it\'s run. However, the path to that director
I found the solution below on this page:
x="test\ me" eval cd $x
A combination of \ in a double-quoted text constant and an eval before cd makes it work like a charm!
\
eval
cd