Bug 176994 - app-shells/zsh - etc/zsh/zprofile error when globbing empty and/or non-existant /etc/profile.d
|
Bug#:
176994
|
Product: Gentoo Linux
|
Version: unspecified
|
Platform: All
|
|
OS/Version: Linux
|
Status: RESOLVED
|
Severity: trivial
|
Priority: P2
|
|
Resolution: FIXED
|
Assigned To: usata@gentoo.org
|
Reported By: 6d79676d61696c@gmail.com
|
|
Component: Applications
|
|
|
URL:
|
|
Summary: app-shells/zsh - etc/zsh/zprofile error when globbing empty and/or non-existant /etc/profile.d
|
|
Keywords:
|
|
Status Whiteboard:
|
|
Opened: 2007-05-04 06:40 0000
|
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
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. ***