Rebol Call Command的行为与Dos命令完全不同(ex与Subversion命令行)

时间:2009-10-29 14:10:13

标签: rebol

此Subversion导入命令适用于dos命令行:

"C:\Program Files\Subversion\bin\svn.exe" import c:\myproj file:///c:/svnrepo/myproj -m "test"

如果我尝试使用此脚本使用Rebol Call Command发送相同的命令:

Print "This command will and your files to the repository without requiring a working copy"    
repo-directory: to-local-file ask "repo: "
project-subdirectory: to-local-file ask "project: "
source-directory: to-local-file ask "source directory: "
comment: ask "comment: "
command: rejoin [{"} Subversion.Directory "bin\svn.exe" {"} " import " source-directory " file:///" (replace/all (to-local-file repo-directory) "\" "/") "/" project-subdirectory " -m " {"} comment {"}]
call/wait/console command

我会得到这个

repo: c:\svnrepo
project: myproj
source directory: c:\myproj
comment: test
svn: The given propagation message is a path (-F was this intended ?) ; force with 
 '--force-log'
== 1

命令的值与Dos命令相同:

>> command
== {"C:\Program Files\Subversion\bin\svn.exe" import c:\myproj file:///c:/svnrepo/m
yproj -m "test"}
>>

所以我添加了--force-log然后它确实有效但我仍然想知道如果有一个我忽略的话Rebol不像Dos Command那样的原因。

1 个答案:

答案 0 :(得分:1)

如果你写命令说%script.cmd并从Rebol调用它,你会得到想要的效果吗?