summary refs log tree commit diff
path: root/src/eval.h
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2010-05-26 18:54:19 +0800
committerHerbert Xu <herbert@gondor.apana.org.au>2010-05-26 18:54:19 +0800
commit95a60b2936e8835963bfb08eadc0edf9dddf0498 (patch)
tree7c7843fe6f74a7b93131d00fc49a799497c91863 /src/eval.h
parent[VAR] Move unsetvar functionality into setvareq (diff)
downloaddash-95a60b2936e8835963bfb08eadc0edf9dddf0498.tar.gz
dash-95a60b2936e8835963bfb08eadc0edf9dddf0498.zip
[VAR] Replace cmdenviron with localvars
This patch replaces the cmdenviron mechanism for temporary command
variables with the localvars mechanism used by functions.

This reduces code size, and more importantly, makes the variable
assignment take effect immediately as required by POSIX.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'src/eval.h')
-rw-r--r--src/eval.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/eval.h b/src/eval.h
index e190b28..ac394e8 100644
--- a/src/eval.h
+++ b/src/eval.h
@@ -37,7 +37,6 @@
 extern char *commandname;	/* currently executing command */
 extern int exitstatus;		/* exit status of last command */
 extern int back_exitstatus;	/* exit status of backquoted command */
-extern struct strlist *cmdenviron;  /* environment for builtin command */
 
 
 struct backcmd {		/* result of evalbackcmd */