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