Bug 102187 - /etc/zprofile does not source /etc/profile.d/*.sh
Summary: /etc/zprofile does not source /etc/profile.d/*.sh
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Linux Beta
Classification: Retired
Component: zsh
Version: beta1
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Jens Petersen
QA Contact: Mike McLean
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2003-08-12 12:54 UTC by KELEMEN Péter
Modified: 2007-04-18 16:56 UTC (History)
2 users (show)

Fixed In Version: 4.2.0-3
Clone Of:
Environment:
Last Closed: 2005-12-20 07:31:42 UTC
Embargoed:


Attachments (Terms of Use)

Description KELEMEN Péter 2003-08-12 12:54:33 UTC
Description of problem:
zsh(1) processes /etc/zprofile startup script when invoked as zsh
(i.e., not in sh(1)/ksh(1)/bash(1) compatibility mode).  Since the
infrastructure to source /etc/profile.d/*.sh package-specific startup
scripts exists only in /etc/profile, zsh(1) users will not benefit
from having those.

Version-Release number of selected component (if applicable):
zsh-4.0.7-1.1

How reproducible:
every time

Steps to Reproduce:
1. strace -f zsh 2>&1 | grep -i profile
    
Actual results:


Expected results:


Additional info:
Include (at least) the /etc/profile.d/*.sh sourcing snippet from
/etc/profile .  However, for the sake of similar environments, just
source /etc/profile from /etc/zprofile...

Comment 1 Jens Petersen 2003-09-04 03:17:18 UTC
Can you explain in more detail how to reproduce this, please?

I see:

% strace -f zsh -l | grep profile
stat64("/etc/zprofile.zwc", 0xbfffdb50) = -1 ENOENT (No such file or directory)
stat64("/etc/zprofile", {st_mode=S_IFREG|0644, st_size=146, ...}) = 0
open("/etc/zprofile", O_RDONLY|O_NOCTTY|O_LARGEFILE) = 3
read(11, "#\n# /etc/zprofile and ~/.zprofil"..., 4096) = 146
stat64("/home/petersen/.zprofile.zwc", 0xbfffd970) = -1 ENOENT (No such file or
directory)
stat64("/home/petersen/.zprofile", 0xbfffd910) = -1 ENOENT (No such file or
directory)
open("/home/petersen/.zprofile", O_RDONLY|O_NOCTTY|O_LARGEFILE) = -1 ENOENT (No
such file or directory)
stat64("/etc/profile", {st_mode=S_IFREG|0644, st_size=842, ...}) = 0
access("/etc/profile", F_OK)            = 0
stat64("/etc/profile", {st_mode=S_IFREG|0644, st_size=842, ...}) = 0
stat64("/etc/profile.zwc", 0xbfffd270)  = -1 ENOENT (No such file or directory)
stat64("/etc/profile", {st_mode=S_IFREG|0644, st_size=842, ...}) = 0
open("/etc/profile", O_RDONLY|O_NOCTTY|O_LARGEFILE) = 3
read(12, "# /etc/profile\n\n# System wide en"..., 4096) = 842
open("/etc/profile.d/", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY) = 3
access("/etc/profile.d/colorls.sh", R_OK) = 0
stat64("/etc/profile.d/colorls.sh.zwc", 0xbfffc8c0) = -1 ENOENT (No such file or
directory)
stat64("/etc/profile.d/colorls.sh", {st_mode=S_IFREG|0755, st_size=719, ...}) =
0
:
:


Comment 2 Jens Petersen 2003-09-04 06:32:42 UTC
Nevermind.  Please include /etc/shell/.zshrc in your .zshrc file.

*** This bug has been marked as a duplicate of 88457 ***

Comment 3 Jens Petersen 2004-07-05 07:44:45 UTC
*** Bug 126539 has been marked as a duplicate of this bug. ***

Comment 4 Jens Petersen 2004-07-05 07:46:45 UTC
Going to try out sourcing profile in zprofile in 4.2.0-3.

Comment 5 Daniel Qarras 2007-01-31 05:10:21 UTC
I posted something related to bug 126539 and but bug 225454. It seems that I
cannot reopen this one.

Comment 6 Matěj Cepl 2007-01-31 20:55:20 UTC
*** Bug 226344 has been marked as a duplicate of this bug. ***


Note You need to log in before you can comment on or make changes to this bug.