Bug 102187
| Summary: | /etc/zprofile does not source /etc/profile.d/*.sh | ||
|---|---|---|---|
| Product: | [Retired] Red Hat Linux Beta | Reporter: | KELEMEN Péter <peter.kelemen+rhbz> |
| Component: | zsh | Assignee: | Jens Petersen <petersen> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Mike McLean <mikem> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | beta1 | CC: | dqarras, magnus |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | i386 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | 4.2.0-3 | Doc Type: | Bug Fix |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2005-12-20 07:31:42 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
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
:
:
Nevermind. Please include /etc/shell/.zshrc in your .zshrc file. *** This bug has been marked as a duplicate of 88457 *** *** Bug 126539 has been marked as a duplicate of this bug. *** Going to try out sourcing profile in zprofile in 4.2.0-3. I posted something related to bug 126539 and but bug 225454. It seems that I cannot reopen this one. *** Bug 226344 has been marked as a duplicate of this bug. *** |
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...