我在Ubuntu 10.04上使用Subversion 1.6.6,运行bash
shell.我想在我的提交消息中插入回车符,换行符或换行符,以便在阅读日志时,评论的格式适当.它在我使用系统编辑器时工作正常,或者为提交注释指定一个文件,但我真正想要的是能够执行以下操作:
svn ci -m "This is the first line\nThis is the second line"@H_301_4@并将评论表达为:
This is the first line This is the second line@H_301_4@我的例子不起作用,它产生输出:
@H_301_4@This is the first line\nThis is the@H_301_4@那么,有没有办法做到这一点?如果是这样,怎么样?
second line
解决方法
试试这个:
svn ci -m $'This is the first line\nThis is the second line'