bash: GNU bash, version 4.3.42(4)-release (x86_64-pc-msys)
OS: Windows7
git: git version 2.6.4.windows.1
Without command substitution, directly executing git commands would return correct answers.
$ git write-tree
76cb4719e27c7d77ef396992b3ba90cd98d22fcd
But when I execute some git commands with command substitution, it would return nothing.
$ echo "`git write-tree`"
$ echo "$(git write-tree)"
But the most strange thing is: Only some of git commmands occur this problem, for example: git write-tree
, git rev-parse
, git var
. And other git commands, such as git log
, run well.
And some environment is exactly as same as mine, OS, bash and git. But everything works fine.
As a result, I wanna konw whether there's something I need to configure. This thing really confuse me.