mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-05 08:06:09 +00:00
Shell: Print paths in plain mode when stdout is not a tty
This makes e.g. `pwd | ...` behave as expected, where pwd doesn't add a hyperlink around the path.
This commit is contained in:
committed by
Andreas Kling
parent
06f7f549f2
commit
da5b1680bb
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user