resolve windows environment variables for paths #147
-
will it make sense to resolve the windows environment variables (enclosed in %) for paths in the msys2 shell? this will make the windows environment variables like i was thinking of using like this: $ cd %localappdata% $ mv %userprofile%/some-file /d/my-dir currently these variables are not resolved and error is shown: |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 4 replies
-
No, it's a convention to use In case of bash,
If you want to use cmd like syntax you can use msys2 by adding the installation directories in %PATH% env. variable in cmd or powershell. But some tools may not work as expected. |
Beta Was this translation helpful? Give feedback.
-
ahw, really nice. yep, also, kinda amazing. also, i was thinking of adding these windows environment variables in the |
Beta Was this translation helpful? Give feedback.
-
It works from msys2 bash also. See the following output.
|
Beta Was this translation helpful? Give feedback.
-
brilliant :) super neat, one more reason to love msys2 from my side reminder to self,
|
Beta Was this translation helpful? Give feedback.
-
In powershell, it's |
Beta Was this translation helpful? Give feedback.
It works from msys2 bash also. See the following output.