diff --git a/Userland/Shell/Shell.cpp b/Userland/Shell/Shell.cpp index 2ce3184587..4156fa4a69 100644 --- a/Userland/Shell/Shell.cpp +++ b/Userland/Shell/Shell.cpp @@ -72,7 +72,7 @@ void Shell::setup_signals() void Shell::print_path(StringView path) { - if (s_disable_hyperlinks || !m_is_interactive) { + if (s_disable_hyperlinks || !m_is_interactive || !isatty(STDOUT_FILENO)) { out("{}", path); return; }