Files
fish-shell/tests/checks
Johannes Altmanninger 992c864f26 Don't overwrite unrelated variables with for-loop-variables
for-loops that were not inside a function could overwrite global
and universal variables with the loop variable.  Avoid this by making
for-loop-variables local variables in their enclosing scope.

This means that if someone does:

    set a global
    for a in local; end
    echo $a

The local $a will shadow the global one (but not be visible in child
scopes). Which is surprising, but less dangerous than the previous
behavior.

The detection whether the loop is running inside a function was failing
inside command substitutions. Remove this special handling of functions
alltogether, it's not needed anymore.

Fixes #6480
2020-01-08 09:10:14 +01:00
..
2019-12-01 18:14:26 +01:00
2019-06-26 21:19:40 +02:00
2019-12-31 14:16:20 -08:00
2019-06-26 21:19:40 +02:00
2019-07-03 15:14:49 +02:00
2019-12-31 13:32:04 -08:00
2019-11-26 18:12:24 +01:00
2019-11-25 13:07:15 +01:00
2019-07-09 10:02:50 -07:00
2019-11-04 17:34:37 +01:00
2019-11-25 13:07:15 +01:00