Hide Forgot
Simple reproducer: """ $ ln -sf /bin/zsh ksh $ cat t.sh # !/bin/sh echo $HOME $ ./ksh -n t.sh """ Problem has also been reported to upstream, with an initial possible patch: """ --- zsh-5.0.2/Src/init.c.orig 2016-10-27 15:36:29.210875166 -0200 +++ zsh-5.0.2/Src/init.c 2016-10-27 15:36:33.581867451 -0200 @@ -963,7 +963,7 @@ setupvals(void) if (EMULATION(EMULATE_ZSH)) ptr = home; else - ptr = zgetenv("HOME"); + ptr = home = zgetenv("HOME"); if (ptr && ispwd(ptr)) pwd = ztrdup(ptr); else if ((ptr = zgetenv("PWD")) && (strlen(ptr) < PATH_MAX) && """
Created attachment 1214975 [details] zsh-bz1389492.patch Upstream patch. Needs edit as ChangeLog diff will not apply.
Please remember to report the exact NVR (Name-Version-Release) of the package you tested it with. Is this a duplicate of bug #1267251?
It is indeed a duplicate of #1267251 Package was zsh-5.0.2-14.el7_2.2
*** This bug has been marked as a duplicate of bug 1267251 ***