diff --git a/Shell/Shell.cpp b/Shell/Shell.cpp index 57a99f429aa..12142cef2ed 100644 --- a/Shell/Shell.cpp +++ b/Shell/Shell.cpp @@ -873,6 +873,8 @@ NonnullRefPtrVector Shell::run_commands(Vector& commands) bool Shell::run_file(const String& filename, bool explicitly_invoked) { TemporaryChange script_change { current_script, filename }; + TemporaryChange interactive_change { m_is_interactive, false }; + auto file_result = Core::File::open(filename, Core::File::ReadOnly); if (file_result.is_error()) { if (explicitly_invoked)