mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-31 03:51:14 -03:00
__init_uvar: match previous behavior
query for any set variable, not just universals, lest someone avoiding uvars intentionally has a problem.
This commit is contained in:
@@ -37,7 +37,7 @@ function __fish_config_interactive -d "Initializations that should be performed
|
||||
|
||||
# usage: __init_uvar VARIABLE VALUES...
|
||||
function __init_uvar -d "Sets a universal variable if it's not already set"
|
||||
if not set --query --universal $argv[1]
|
||||
if not set --query $argv[1]
|
||||
set --universal $argv
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user