From 742fde0dd68858ad603b449501f0c42cd7864fab Mon Sep 17 00:00:00 2001
From: Fabian Homborg <FHomborg@gmail.com>
Date: Fri, 28 Dec 2018 17:57:53 +0100
Subject: [PATCH] Don't use less in highlighting test
It doesn't have to be installed.
`cat` is in our dependencies, so we can assume it's there.
Fixes #5436.
---
src/fish_tests.cpp | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/fish_tests.cpp b/src/fish_tests.cpp
index f6094254..abe21a2e 100644
--- a/src/fish_tests.cpp
+++ b/src/fish_tests.cpp
@@ -4243,7 +4243,8 @@ static void test_highlighting() {
{L"cat", highlight_spec_command},
{L"/dev/null", highlight_spec_param},
{L"|", highlight_spec_statement_terminator},
- {L"less", highlight_spec_command},
+ // This is bogus, but we used to use "less" here and that doesn't have to be installed.
+ {L"cat", highlight_spec_command},
{L"2>", highlight_spec_redirection},
});
--
2.20.1