From ef313dc8c5c7c310a8edfff2811c39069380c7a1 Mon Sep 17 00:00:00 2001 From: Kurtis Rader Date: Tue, 11 Apr 2017 21:53:13 -0700 Subject: [PATCH] a step to remove __fish_sgrep per issue #2450 --- tests/test9.in | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tests/test9.in b/tests/test9.in index 789d93f74..fcc45a816 100644 --- a/tests/test9.in +++ b/tests/test9.in @@ -134,9 +134,8 @@ try_unbalanced_block 'if false' "while" false; end "wh"'ile' false; "e"nd -# BOM checking (see #1518) -# But only in UTF8 -if locale | __fish_sgrep -q -i utf-8 +# BOM checking (see #1518). But only in UTF8 locales. +if string match -qi '*utf-8*' -- (locale) echo \uFEFF"echo bom_test" | source else echo "echo bom_test" | source