我需要从tcl脚本调用cygwin bash并在bash打开后执行一些参数。 这是我的代码:
set gitBash ""
append gitBash "C:/cygwin/bin"
cd $gitBash
set command exec
lappend command "bash.exe"
lappend command "-c"
lappend command "cd cygdrive/c/workset"
问题是我收到此错误
couldn't execute "exec bash.exe -c {cd cygdrive\c\workset\CASTLE5\2_Castle5_Dev\1_Castle}": no such file or directory
while executing
"exec $command"
任何提示?
答案 0 :(得分:2)