diff options
author | Peter Stephenson <pws@users.sourceforge.net> | 2006-02-06 11:57:03 +0000 |
---|---|---|
committer | Peter Stephenson <pws@users.sourceforge.net> | 2006-02-06 11:57:03 +0000 |
commit | 8b0cc8781764e0d1b203423033fab71774e40016 (patch) | |
tree | 0018ea9e0d2ad1308e1d384fdba3e5859dc99ed2 /Src/Modules | |
parent | 800c270d4d75aaa668da906383ae6b41f952f6f5 (diff) | |
download | zsh-8b0cc8781764e0d1b203423033fab71774e40016.tar.gz zsh-8b0cc8781764e0d1b203423033fab71774e40016.tar.xz zsh-8b0cc8781764e0d1b203423033fab71774e40016.zip |
22195: don't set HOME in the shell
Diffstat (limited to 'Src/Modules')
-rw-r--r-- | Src/Modules/newuser.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Src/Modules/newuser.c b/Src/Modules/newuser.c index ba66d56f3..72d16e272 100644 --- a/Src/Modules/newuser.c +++ b/Src/Modules/newuser.c @@ -67,8 +67,11 @@ boot_(UNUSED(Module m)) if (emulation != EMULATE_ZSH) return 0; - if (!dotdir) + if (!dotdir) { dotdir = home; + if (!dotdir) + return; + } if (check_dotfile(dotdir, ".zshenv") == 0 || check_dotfile(dotdir, ".zprofile") == 0 || |