开发者

How to remove a folder named ${env.CATALINA_HOME} from an Subversion repo

开发者 https://www.devze.com 2022-12-29 20:27 出处:网络
I pulled a stupid and accidentally committed a folder named ${env.CATALINA_HOME} to my subversion repo. I tried doing an svn rm /path/to/${env.CATALINA_HOME} but it says \"bad substitution\" which I\'

I pulled a stupid and accidentally committed a folder named ${env.CATALINA_HOME} to my subversion repo. I tried doing an svn rm /path/to/${env.CATALINA_HOME} but it says "bad substitution" which I'm guessing means that it cant figure out why i'm using ${} notation 开发者_开发问答in the path. I also tried surrounding the path in quotes, to no avail.

Suggestions?


Assuming you're using a Bourne shell, use single quotes instead of double quotes.


This is more of a shell question than a subversion question...you have a couple of options.

1) Enclose the path in single quotes instead of double quotes -- this suppresses the variable substitution.

or

2) Escape the $ with a backslash: \$

Both options should work in just about any shell variant -- Bourne shell, bash, csh, ksh, zsh...

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号