问题描述
当我运行git命令时,我注意到我得到了一个完全不相关的程序的奇怪消息,即threadscope,我用它来获取有关我的并行Haskell程序的信息。
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
我不知道是什么导致了这种情况。它看起来很温和,但有点烦人。
这似乎与程序'gettext.exe'有关,但我无法在线找到有关它的信息。
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.
有问题的第90行gettext .sh是
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?
我使用Window 10.我通过从并将它们放在我的程序文件文件夹中。
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.
推荐答案
尝试设置(用于测试)在CMD会话中
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
含义:先设置Git,然后设置ThreadScope在路径中:看看这两个在新的上下文中是否运行得更好。
Meaning: you set Git first, then ThreadScope in the PATH: see if both are running better in that new context.
这篇关于ThreadScope的gettext.sh文件干扰Windows上的git的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!