Addtional detectors for shebang
@@ -6,17 +6,7 @@ import (
)
/*
-java,#!/opt/java/jdk-11/bin/java --source 11
-bash,/bin/bash
-dart,/usr/bin/env dart
-fish,/bin/fish
-groovy,/usr/bin/groovy
-korn,/bin/ksh
-lua,/usr/bin/env lua
-ruby,/usr/bin/ruby
scala,/usr/bin/env scala
-sed,usr/bin/sed
-shell,/bin/sh
swift,/usr/bin/env swift
tcl,/usr/bin/env tcl
zsh,/bin/zsh
@@ -38,6 +28,10 @@ var sheBangMatches = map[string][]string{
"Shell": {"sh"},
"Ruby": {"ruby"},
"Lua": {"lua"},
+ "Korn Shell": {"ksh"},
+ "sed": {"sed"},
+ "TCL": {"tcl"},
+ "ZSH": {"zsh"},
}
// Given some content attempt to determine if it has a #! that maps to a known language and return the language
