gpt4 book ai didi

linux - tclsh 的不同搜索路径

转载 作者:可可西里 更新时间:2023-11-01 11:47:56 26 4
gpt4 key购买 nike

由于各种平台(Linux、SUN)中 tclsh 的不同路径,任何人都知道如何在 Tcl 代码中调用 tclsh?

例如在 SUN 中:

#!/usr/bin/sun/tclsh

在 Linux 中:

#!/usr/bin/linux/tclsh

如何使用相同的Tcl代码并在以上两个路径中执行?

最佳答案

使用 env(1)

#!/usr/bin/env tclsh

另请阅读 shebang文章。

关于linux - tclsh 的不同搜索路径,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3019726/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com