First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 176994
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Mamoru KOMACHI (RETIRED) <usata@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: JT <6d79676d61696c@gmail.com>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 176994 depends on: Show dependency tree
Show dependency graph
Bug 176994 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)







View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   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

------- Comment #1 From JT 2007-05-04 06:43:33 0000 -------
By the way, /etc/profile.d isn't in the current i686 stage tarball. Should it
be?

------- Comment #2 From Dawid Węgliński 2007-05-04 07:02:29 0000 -------
(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?

------- Comment #3 From JT 2007-05-04 07:07:08 0000 -------
Installed versions:  4.3.2-r2(21:05:45 05/03/07)(-caps -doc -examples -maildir
ncurses pcre -static unicode)

------- Comment #4 From David Durrleman 2007-05-07 03:48:23 0000 -------
bug is reproducible here.

same version:
zsh-4.3.2-r2 (-caps -doc -examples -maildir ncurses pcre -static unicode)

------- Comment #5 From Mamoru KOMACHI (RETIRED) 2007-05-07 06:54:03 0000 -------
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.

------- Comment #6 From David Durrleman 2007-05-08 01:04:25 0000 -------
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

------- Comment #7 From JT 2007-05-08 01:19:38 0000 -------
I've created a report, David.

See Bug #177574

------- Comment #8 From JT 2007-05-08 01:45:38 0000 -------
Mamoru, while I haven't yet remerged zsh, the updates to zprofile should
resolve the issue.

Thanks.

------- Comment #9 From Jakub Moc 2007-05-10 05:49:43 0000 -------
*** Bug 177865 has been marked as a duplicate of this bug. ***

First Last Prev Next    No search results available      Search page      Enter new bug