mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-25 20:33:08 +00:00
a step to remove __fish_sgrep per issue #2450
This commit is contained in:
parent
f20c7deaf1
commit
c272584fec
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue