mbland / go-script-bash

Framework for writing modular, discoverable, testable Bash scripts
ISC License
95 stars 16 forks source link

Doument POSIX path translation in MSYS2 #176

Open mbland opened 7 years ago

mbland commented 7 years ago

Adding the following to go-core.bash would avoid some nasty surprises:

if [[ "$OSTYPE" == 'msys' ]]; then
  export MSYS_NO_PATHCONV='true'
  export MSYS2_ARG_CONV_EXCL='*'
fi

per: How to stop mingw and msys from mangling path names given at the command line? (Stack Overflow)

This may have ramifications for the ./go get command, though I'm not sure yet.

mbland commented 7 years ago

Per mbland/url-pointers#62, setting this at the top level actually breaks some programs, notably npm install. So rather than automatically disabling it, it should be better documented somewhere.