Alexpux / MSYS2-pacman

MSYS2 port of Arch Linux packman package manager.
GNU General Public License v2.0
164 stars 34 forks source link

Interop failure. #45

Closed ci70 closed 7 years ago

ci70 commented 7 years ago

This works on Bash for Windows fails on MSYS2.

export PATH=$PATH:/mnt/c/Windows/System32 FLAGS=--cache-size=100 setx.exe /m TEST "$FLAGS"

MSYS2 reports ERROR: Invalid syntax. Default option is not allowed more than '2' time(s). Which is wrong.

ci70 commented 7 years ago

Correct way is to use -m not /m. Should be mentioned IMHO.

elieux commented 7 years ago
  1. Not really the correct way, it's just a workaround that works for some Microsoft tools.

  2. Documentation on path mangling (which is taking place here) is here and here.

  3. I presume you didn't change your /etc/fstab in which case the first line (with export PATH=...) is useless, as /mnt/c/ doesn't exist (unless you created a symlink, I guess).

  4. Why would you assume everything from WSL works verbatim in MSYS2?

ci70 commented 7 years ago

Thanks, I honestly think MSYS2 is better than WSL. Since I only write WIN apps.