1
I created an environment variable that stores a path
roomy:
/c/Users/Bruno Xavier
Despite being in windows, my intention is to use it by git bash
for easy access to the directory.
I tried the two most obvious alternatives:
- Encapsulate the path with quotes:
"/c/Users/Bruno Xavier"
- Skip the white space:
/c/Users/Bruno\ Xavier
None of them worked. The only solution I can come up with is:
"$my_var" com my_var = /c/Users/Bruno Xavier
However, I would like to access cd $my_var
without having to type the quotes in the terminal
What is your doubt after all?
– Caio de Paula Silva
I want to type
$my_var
and not"$my_var"
– absentia