mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-28 01:11:15 -03:00
a step to remove __fish_sgrep per issue #2450
This commit is contained 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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user