水银好像对待美元的迹象,环境变量转义:
C:\test>set X=abc
C:\test>echo $X # Not the shell expanding it, that would be %X%.
$X
C:\test>hg init $X
C:\test>dir
Volume in drive C has no label.
Volume Serial Number is CE8B-D448
Directory of C:\test
11/10/2017 09:27 PM <DIR> .
11/10/2017 09:27 PM <DIR> ..
11/10/2017 09:27 PM <DIR> abc
0 File(s) 0 bytes
3 Dir(s) 53,899,231,232 bytes free
水银扩展$X
作为环境变量。另外:
C:\test>hg init dir$$x
C:\test>dir
Volume in drive C has no label.
Volume Serial Number is CE8B-D448
Directory of C:\test
11/10/2017 09:30 PM <DIR> .
11/10/2017 09:30 PM <DIR> ..
11/10/2017 09:30 PM <DIR> dir$x
0 File(s) 0 bytes
3 Dir(s) 53,899,091,968 bytes free
两个美元符号插入一个美元符号。当您位于名为dir$$x
的目录中时,Mercurial正在使用dir$x
作为名称。我发现与hg -R. status
解决方法,但更好地避免美元符号。
看起来不起作用。你有什么问题? –
如果您甚至找到使其工作的方法,这是各种头痛的秘诀。你为什么要这样做? –
John,谢谢你的回应,对不起,我的问题没有明确说明。有没有办法让我可以在windows 10上使用名为美元符号的目录中的Mercurial?谢谢 –