If having a directory name as "my dir". I can get to the directory use this,
~: cd my\ dir
or
~: cd "dy dir"
But I found if I do this:
~: export my_dir=my\ dir
or
~: export my_dir="my dir"
then
~: cd $my_dir
it does not work, cd always get its parameter as "my " and report error.
Anyone aware how to fix this?
Thanks!
export
that variable.