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
Use single quotes, like:
myPath=~/'my dir' cd $myPath