summary refs log tree commit diff
path: root/src/builtins.def.in
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2010-05-27 11:50:19 +0800
committerHerbert Xu <herbert@gondor.apana.org.au>2010-05-27 11:50:19 +0800
commit1d806ac1fbafb867f6252e184e1be05c0829ab71 (patch)
treeb53f7fc72f3d535437421c57653196a8b0d40663 /src/builtins.def.in
parent[VAR] Document local command behaviour change (diff)
downloaddash-1d806ac1fbafb867f6252e184e1be05c0829ab71.tar.gz
dash-1d806ac1fbafb867f6252e184e1be05c0829ab71.zip
[VAR] Do not poplocalvars prematurely on regular utilities
The recent cmdenviron removal broke regular utilities by calling
poplocalvars too early.  This patch fixes that by postponing the
poplocalvars for regular utilities until they have completed.

In order to ensure that local still works, it is now a special
built-in.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to '')
-rw-r--r--src/builtins.def.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/builtins.def.in b/src/builtins.def.in
index 266d0ec..4441fe4 100644
--- a/src/builtins.def.in
+++ b/src/builtins.def.in
@@ -71,7 +71,7 @@ falsecmd	-u false
 getoptscmd	-u getopts
 hashcmd		hash
 jobscmd		-u jobs
-localcmd	-a local
+localcmd	-as local
 printfcmd	printf
 pwdcmd		pwd
 readcmd		-u read