diff --git a/runtime/autoload/dist/script.vim b/runtime/autoload/dist/script.vim index 859126f0f6..c184bd032d 100644 --- a/runtime/autoload/dist/script.vim +++ b/runtime/autoload/dist/script.vim @@ -4,7 +4,7 @@ vim9script # Invoked from "scripts.vim" in 'runtimepath' # # Maintainer: The Vim Project -# Last Change: 2025 Jan 20 +# Last Change: 2025 Apr 24 # Former Maintainer: Bram Moolenaar export def DetectFiletype() @@ -26,8 +26,9 @@ def DetectFromHashBang(firstline: string) # "#!/usr/bin/bash" to make matching easier. # Recognize only a few {options} that are commonly used. if line1 =~ '^#!\s*\S*\>> return { perl: [['#!/usr/bin/env VAR=val perl']], scala: [['#!/usr/bin/env VAR=val VVAR=vval scala']], - awk: [['#!/usr/bin/env VAR=val -i awk']], + awk: [['#!/usr/bin/env --split-string=VAR= awk -vFS="," -f']], execline: [['#!/usr/bin/env execlineb']], scheme: [['#!/usr/bin/env VAR=val --ignore-environment scheme']], - python: [['#!/usr/bin/env VAR=val -S python -w -T']], + python: [['#!/usr/bin/env -S -i VAR=val python -B -u']], wml: [['#!/usr/bin/env VAR=val --split-string wml']], nix: [['#!/usr/bin/env nix-shell']], } diff --git a/src/version.c b/src/version.c index 8d881242f6..a07561eb6d 100644 --- a/src/version.c +++ b/src/version.c @@ -704,6 +704,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 1342, /**/ 1341, /**/