aboutsummaryrefslogtreecommitdiffhomepage
path: root/env.h
diff options
context:
space:
mode:
authorGravatar Kevin Ballard <kevin@sb.org>2014-07-13 13:21:06 -0700
committerGravatar Kevin Ballard <kevin@sb.org>2014-07-13 13:21:06 -0700
commit7b12fd26f3d0ec2fe655cd537fda21f760e92d11 (patch)
treef51e75a57b2e1f7d7368b16b62acf54e94a15cbd /env.h
parent387ec5c06ad43f2aa0276be039522bd678cac4db (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.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/env.h b/env.h
index 605fc453..3fa64e91 100644
--- a/env.h
+++ b/env.h
@@ -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();