MICROPYPATH expansion issue using MSYS2 #9431
-
I'm tracking down an issue and it turns out it's some MSYS2/bash messing up; could someone confirm this also happens on their machine?
I first thought something was wrong with how unix/main.c does expansion of Minimal thing to reproduce:
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
I don't think this can/needs to be fixed with micropython. The simple workaround is to set your environment without fancy expansion characters. Even in windows there is a HOME environment, isn't it ? While I have no idea what bash on msys2 is expected to do, bash on my linux machine doesn't expand ~ within quotation marks at all:
|
Beta Was this translation helpful? Give feedback.
-
Asked on MSYS2 chat, it's specific to it: https://www.msys2.org/docs/filesystem-paths/#environment-variables |
Beta Was this translation helpful? Give feedback.
Asked on MSYS2 chat, it's specific to it: https://www.msys2.org/docs/filesystem-paths/#environment-variables
So basically it sees that
/
and converts it to the root path no matter what. Unexpected, but now at least I know what the issue is.