Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 116232 - /etc/profile spits out errors in zsh if /etc/profile.d doesnt exist
Summary: /etc/profile spits out errors in zsh if /etc/profile.d doesnt exist
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
: 116571 121673 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-12-20 21:38 UTC by Saleem Abdulrasool (RETIRED)
Modified: 2006-02-05 12:39 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
profile.d-nonexistant.patch (profile.d-nonexistant.patch,441 bytes, patch)
2005-12-20 21:39 UTC, Saleem Abdulrasool (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Saleem Abdulrasool (RETIRED) gentoo-dev 2005-12-20 21:38:43 UTC
/etc/profile.d does not exist, yet the /etc/profile script in the past few revisions of baselayout try to source it.  The attached patch prevents the error message if it does not exist.
Comment 1 Saleem Abdulrasool (RETIRED) gentoo-dev 2005-12-20 21:39:16 UTC
Created attachment 75246 [details, diff]
profile.d-nonexistant.patch
Comment 2 SpanKY gentoo-dev 2005-12-20 21:43:14 UTC
the double check is pointless, added just a -d check to svn, thanks
Comment 3 SpanKY gentoo-dev 2005-12-23 21:31:20 UTC
*** Bug 116571 has been marked as a duplicate of this bug. ***
Comment 4 SpanKY gentoo-dev 2005-12-23 21:31:55 UTC
actually proposed patch is bogus

how the hell are you getting errors ?  that code is fine and the -r check will prevent any attempts to source non-existant files
Comment 5 Steev Klimaszewski (RETIRED) gentoo-dev 2005-12-23 21:37:03 UTC
# Default environment
if [[ -f /etc/profile ]] ; then
   source /etc/profile
fi

That is what I have in my .zshrc

Not sure what is causing it - but when I login, i get

/etc/profile:61: no matches found: /etc/profile.d/*.sh
Comment 6 SpanKY gentoo-dev 2005-12-23 21:43:40 UTC
well it's a good thing you included details :P
Comment 7 Saleem Abdulrasool (RETIRED) gentoo-dev 2006-01-04 13:33:52 UTC
Marking invalid as zsh should not source /etc/profile but rather /etc/zprofile.
Comment 8 SpanKY gentoo-dev 2006-02-05 12:39:34 UTC
*** Bug 121673 has been marked as a duplicate of this bug. ***