Skip to content

Commit 21f8789

Browse files
jokurzalexr00
authored andcommitted
Autodetect ksh scripts as shellscript (microsoft#62838)
Identify ksh scripts (file extenstion `.ksh` or `#!/usr/bin/ksh` in first line) as shellscript. Fixes microsoft#39096
1 parent 1df80b2 commit 21f8789

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

extensions/shellscript/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@
1111
"contributes": {
1212
"languages": [{
1313
"id": "shellscript",
14-
"aliases": ["Shell Script", "shellscript", "bash", "sh", "zsh"],
15-
"extensions": [".sh", ".bash", ".bashrc", ".bash_aliases", ".bash_profile", ".bash_login", ".ebuild", ".install", ".profile", ".bash_logout", ".zsh", ".zshrc", ".zprofile", ".zlogin", ".zlogout", ".zshenv", ".zsh-theme"],
14+
"aliases": ["Shell Script", "shellscript", "bash", "sh", "zsh", "ksh"],
15+
"extensions": [".sh", ".bash", ".bashrc", ".bash_aliases", ".bash_profile", ".bash_login", ".ebuild", ".install", ".profile", ".bash_logout", ".zsh", ".zshrc", ".zprofile", ".zlogin", ".zlogout", ".zshenv", ".zsh-theme", ".ksh"],
1616
"filenames": ["PKGBUILD"],
17-
"firstLine": "^#!.*\\b(bash|zsh|sh|tcsh).*|^#\\s*-\\*-[^*]*mode:\\s*shell-script[^*]*-\\*-",
17+
"firstLine": "^#!.*\\b(bash|zsh|sh|tcsh|ksh).*|^#\\s*-\\*-[^*]*mode:\\s*shell-script[^*]*-\\*-",
1818
"configuration": "./language-configuration.json",
1919
"mimetypes": ["text/x-shellscript"]
2020
}],

0 commit comments

Comments
 (0)