From b47711e23a9095172e50d4e7b182d6609ef75d50 Mon Sep 17 00:00:00 2001 From: pagedown Date: Sat, 5 Feb 2022 20:18:40 +0800 Subject: [PATCH] Fix kitty_exe() being executed when the script doesn't have shebang --- kitty/tabs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kitty/tabs.py b/kitty/tabs.py index 80679090c..82ac498c0 100644 --- a/kitty/tabs.py +++ b/kitty/tabs.py @@ -389,7 +389,7 @@ class Tab: # {{{ line = f.read(4096).splitlines()[0] cmd += shlex.split(line) + [old_exe] else: - cmd += [resolved_shell(get_options())[0], cmd[0]] + cmd += [resolved_shell(get_options())[0], old_exe] if cmd_rest: cmd += cmd_rest fenv: Dict[str, str] = {}