尝试做一些类似这样的事情:
set filename abc.c
for_recursive_glob found {.} {$filename} {
puts $found
break
}这永远不会起作用。
我需要这样做,因为我不知道应该先验搜索的文件名。它们是另一个脚本的输出。
有没有办法做到这一点?
谢谢
发布于 2014-08-26 09:30:39
不要把$filename放在大括号里:
for_recursive_glob found {.} $filename {或者你可以这样做:
for_recursive_glob found {.} [list $filename] {https://stackoverflow.com/questions/25490881
复制相似问题