Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
さまざまなプラットフォーム (Linux、SUN) で tclsh へのパスが異なるため、Tcl コードで tclsh を呼び出す方法を知っている人はいますか?
たとえば、SUN では次のようになります。
#!/usr/bin/sun/tclsh
Linux の場合:
#!/usr/bin/linux/tclsh
上記の 2 つのパスで同じ Tcl コードを使用して実行する方法を教えてください。
のように使用しenv(1)ます
env(1)
#!/usr/bin/env tclsh
シバンの記事も読んでください。