a step to remove __fish_sgrep per issue #2450

This commit is contained in:
Kurtis Rader 2017-04-11 21:46:46 -07:00
parent f20c7deaf1
commit c272584fec

View file

@ -151,7 +151,7 @@ end
set -Ue __fish_test_universal_variables_variable_foo
# Should no longer be in environment (#2046)
env | __fish_sgrep __fish_test_universal_variables_variable_foo
env | string match '__fish_test_universal_variables_variable_foo=*'
set -Ux __fish_test_universal_variables_variable_foo bar
set -U __fish_test_universal_variables_variable_foo baz
@ -229,10 +229,10 @@ end
# Test that shadowing with a non-exported variable works
set -gx __fish_test_env17 UNSHADOWED
env | __fish_sgrep __fish_test_env17
env | string match '__fish_test_env17=*'
function __fish_test_shadow
set -l __fish_test_env17
env | __fish_sgrep __fish_test_env17 ; or echo SHADOWED
env | string match -q '__fish_test_env17=*' ; or echo SHADOWED
end
__fish_test_shadow