MSYS2 shell disable auto mangling path

25年 2月 3日 Monday
77 words
1 minutes

Sometimes this feature can be annoying, for example, when running python script and it screwed up because the script uses misleading path caused by this feature.

The step to disable path conversion

text
set -f
export MSYS2_ARG_CONV_EXCL="*"

the above command will:

  • disable the wildcard expansion
  • set variable to tell msys2 to not perform any path conversion

to confirm if the feature is disabled, try to run this command:

text
/c/Windows/System32/whoami.exe /all

references:

  • stackoverflow - telling how to disable wildcard expansion
  • msys2 official docs telling how to disable path conversion

Title:MSYS2 shell disable auto mangling path

Author:ReYuki

Link:https://www.reyuki.site/posts/msys2-shell-disable-auto-mangling-path [copy]

Last updated:


This work is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License. You are free to share and adapt it, as long as you give appropriate credit, don’t use it for commercial purposes, and distribute your contributions under the same license. Provided under license CC BY-NC-SA 4.0