Indicate programming language in a file without extension

前端 未结 3 1134
-上瘾入骨i
-上瘾入骨i 2020-12-16 03:03

When writing executable scripts, and declarative configuration files that use a common language (eg. Python), I often find it undesirable to add an extension to the file nam

3条回答
  •  独厮守ぢ
    2020-12-16 03:44

    Typically the shebang line is used as a fall-back.

    For example, a Ruby script without an extension would begin with:

    #!/usr/bin/env ruby
    

提交回复
热议问题