#! /bin/bash
my_path='Program Files'
cd /mnt/c
echo $(pwd)
cd "$my_path"
echo $(pwd)
The point is use ' ' for path which has space.
#! /bin/bash
my_path='Program Files'
cd /mnt/c
echo $(pwd)
cd "$my_path"
echo $(pwd)
The point is use ' ' for path which has space.