diff options
author | 2014-07-13 13:21:06 -0700 | |
---|---|---|
committer | 2014-07-13 13:21:06 -0700 | |
commit | 7b12fd26f3d0ec2fe655cd537fda21f760e92d11 (patch) | |
tree | f51e75a57b2e1f7d7368b16b62acf54e94a15cbd /env.h | |
parent | 387ec5c06ad43f2aa0276be039522bd678cac4db (diff) |
Change how we separate toplevel and global scopes
Instead of introducing a new local scope at the point of `set`, merely
push a new local scope at the end of env_init(). This means we have a
single toplevel local scope across the lifetime of the fish process,
which means that
set -l foo bar
echo $foo
behaves as expected, without modifying the global environment.
Diffstat (limited to 'env.h')
-rw-r--r-- | env.h | 6 |
1 files changed, 0 insertions, 6 deletions
@@ -206,12 +206,6 @@ void env_push(bool new_scope); */ void env_pop(); -/** - Push the variable stack if the current scope is the global scope. Returns - whether it pushed a scope. -*/ -bool env_ensure_local_scope(); - /** Synchronizes all universal variable changes: writes everything out, reads stuff in */ void env_universal_barrier(); |