diff --git a/tests/test3.in b/tests/test3.in index b06ef4ab9..26e496bce 100644 --- a/tests/test3.in +++ b/tests/test3.in @@ -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