Use delayed expansion of environment variables
commita6018d3fe8a4f618361f5d0a9c0e1ba0b0f3c1d8
authorADTC <send2adtc@gmail.com>
Mon, 15 Sep 2014 09:38:28 +0000 (15 17:38 +0800)
committerADTC <send2adtc@gmail.com>
Mon, 15 Sep 2014 09:38:28 +0000 (15 17:38 +0800)
tree0ff99d84850cec8dfeed014b203ff462bf75f33e
parent19e7d11ed7ac94aabaaff3c4d4ac6aeb99571b3b
Use delayed expansion of environment variables

With the immediate expansion, paths containing the ampersand symbol (&)
will not work in this script. This is likely to occur when the user
profile is located in a folder that contains the symbol in its name.
The command processor misinterprets the symbol as to mean the union of
two separate commands.

To avoid the issue, "delayed expansion" is used and the environment
variables are demarcated using the exclamation mark (!) instead of
the percentage symbol (%).

Signed-off-by: ADTC <send2adtc@gmail.com>
cmd/gitk.cmd