Questions tagged «shebang»

1
我可以有条件的shebang吗?
我有一个可以使用不同的解释器运行的脚本: #!/usr/bin/env default-interpreter [my script] 但我想使用alternative-interpreterif if is available,如下所示: #!/usr/bin/env alternative-interpreter [my script] 有没有办法创建一个寻找alternative-interpreter和倒退的shebang,default-interpreter以防第一个没有?
7 linux  shebang 
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.