When i try to do this...
$ export my_path='/my/path\ with\ spaces/file'
$ echo $my_path`
/my/path\ with\ spaces/file
It works.
But i want to do this..
$ echo $my_variable
my_path='/my/path\ with\ spaces/file'
$ export $my_variable
-bash: export: `with\': not a valid identifier
-bash: export: `spaces/file'': not a valid identifier
This is the error iam getting. Is there a way to treat the value of the variable for exporting.. [[ NOTE: if the path did not have a space, it works perfectly!! ]]