From 30176eaf635a61d77114f5e834ed0684ea7dac05 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Tue, 7 Feb 2006 11:29:30 +0000 Subject: 22198: do always set HOME in native emulation --- Src/params.c | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'Src/params.c') diff --git a/Src/params.c b/Src/params.c index 5e4231cac..a633fb579 100644 --- a/Src/params.c +++ b/Src/params.c @@ -690,6 +690,17 @@ createparamtable(void) *envp = '\0'; opts[ALLEXPORT] = oae; + if (emulation == EMULATE_ZSH) + { + /* + * For native emulation we always set the variable home + * (see setupvals()). + */ + pm = (Param) paramtab->getnode(paramtab, "HOME"); + pm->flags &= ~PM_UNSET; + if (!(pm->flags & PM_EXPORTED)) + addenv(pm, home); + } pm = (Param) paramtab->getnode(paramtab, "LOGNAME"); if (!(pm->flags & PM_EXPORTED)) addenv(pm, pm->u.str); -- cgit 1.4.1