mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-03-06 02:01:30 +08:00

When setting a variable without a specified scope, we should give priority to an existing local or global above an existing universal variable with the same name. In 16fd7804846c0aeca926f207eb0e2ae86f819931 there was a regression that made universal variables have priority. Fixes #5883
14 lines
281 B
Plaintext
14 lines
281 B
Plaintext
|
|
####################
|
|
# Path universal variables
|
|
|
|
####################
|
|
# Variable names in other commands
|
|
fish: for: Variable name 'a,b' is not valid. See `help identifiers`.
|
|
|
|
for a,b in y 1 z 3; echo $a,$b; end
|
|
^
|
|
|
|
####################
|
|
# Global vs Universal Unspecified Scopes
|