Sourcing /etc/zsh/zprofile throws error when /etc/profile.d is empty and/or doesn't exist. Last login: Thu May 3 23:29:45 2007 from 10.10.1.4 /etc/zsh/zprofile:34: no matches found: /etc/profile.d/*.sh Reproducible: Always Possible fix: set/unset nullglob... or something... anything. It was ruining my pretty login. # Extract the value of EDITOR [ -z "$EDITOR" ] && EDITOR="`. /etc/rc.conf 2>/dev/null; echo $EDITOR`" [ -z "$EDITOR" ] && EDITOR="/bin/nano" export EDITOR setopt nullglob for sh in /etc/profile.d/*.sh ; do if [ -r "$sh" ] ; then . "$sh" fi done unsetopt nullglob unset sh
By the way, /etc/profile.d isn't in the current i686 stage tarball. Should it be?
(In reply to comment #0) > Sourcing /etc/zsh/zprofile throws error when /etc/profile.d is empty and/or > doesn't exist. > > Last login: Thu May 3 23:29:45 2007 from 10.10.1.4 > /etc/zsh/zprofile:34: no matches found: /etc/profile.d/*.sh > sapphire cla # mv /etc/profile.d /etc/profile.d.old sapphire cla # source /etc/zsh/zprofile sapphire cla # Not reproduciable for me. Could you please add info which zsh version are you using?
Installed versions: 4.3.2-r2(21:05:45 05/03/07)(-caps -doc -examples -maildir ncurses pcre -static unicode)
bug is reproducible here. same version: zsh-4.3.2-r2 (-caps -doc -examples -maildir ncurses pcre -static unicode)
Thanks for the bug report. I mistakenly assumed /etc/profile.d exist in all Gentoo boxes. Sorry. I added "setopt nullglob" around the sourcing function of profile.d. Please remerge zsh to verify it's fixed.
it seems that the fix has created a new bug: !!! A file listed in the Manifest could not be found: /usr/portage/app-shells/zsh/files/zprofile.bak
I've created a report, David. See Bug #177574
Mamoru, while I haven't yet remerged zsh, the updates to zprofile should resolve the issue. Thanks.
*** Bug 177865 has been marked as a duplicate of this bug. ***