我想在 tcl 文件中运行命令。根据Unix示例,我写道:
....
exec export LD_LIBRARY_PATH=/opt/gcc-4.1.2-built/lib64
puts $gofile "#!/bin/bash
....
但是我收到此错误:
couldn't execute "export": no such file or directory
while executing
"exec export LD_LIBRARY_PATH=/opt/gcc-4.1.2-built/lib64"
如果我删除该 exec 行,则没有错误。