a step to remove __fish_sgrep per issue #2450

This commit is contained in:
Kurtis Rader
2017-04-11 21:53:13 -07:00
parent c272584fec
commit ef313dc8c5

View File

@@ -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