Raskell
Raskell

Reputation: 158

Threadscope's gettext.sh file interferes with git on Windows

When I run git commands, I'm noticing I get strange messages wrt a totally unrelated program, namely threadscope, which I use for obtaining information on my parallel Haskell programs.

 git stash
': not a valid identifier/threadscope-0.2.2/bin/gettext.sh: line 90: export: `dashless
': not a valid identifier/threadscope-0.2.2/bin/gettext.sh: line 90: export: `USAGE
': not a valid identifier/threadscope-0.2.2/bin/gettext.sh: line 90: export: `stash_msg

I'm not sure what is causing this. It seems benign, but it is a bit annoying. It seems related to the program 'gettext.exe' but I am unable to find information online on what it does.

The line 90 in question in gettext.sh is

eval_gettext () {
  gettext "$1" | (export PATH `envsubst --variables "$1"`; envsubst "$1")
}

Could someone help me with getting rid of these messages in the right way?

I'm using Window 10. I installed threadscope by downloading the binaries from https://wiki.haskell.org/ThreadScope#Installing_ThreadScope and placing them in my program files folder.

Upvotes: 1

Views: 6124

Answers (1)

VonC
VonC

Reputation: 1323733

Try setting (for testing) a simplified PATH in a CMD session

set PATH=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\
set GH=C:\path\to\git
set PATH=%GH%\bin;%GH%\usr\bin;%GH%\mingw64\bin;%PATH%

set PATH=%PATH%;/path/to/ThreadScope/bin

Meaning: you set Git first, then ThreadScope in the PATH: see if both are running better in that new context.

Upvotes: 1

Related Questions