Bug 639063 - profile.d scripts do not load properly in zsh
profile.d scripts do not load properly in zsh
Status: CLOSED DUPLICATE of bug 633212
Product: Fedora
Classification: Fedora
Component: krb5 (Show other bugs)
All Linux
low Severity low
: ---
: ---
Assigned To: Nalin Dahyabhai
Fedora Extras Quality Assurance
Depends On:
  Show dependency treegraph
Reported: 2010-09-30 14:08 EDT by Elliott Forney
Modified: 2010-09-30 19:08 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2010-09-30 19:08:16 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Elliott Forney 2010-09-30 14:08:11 EDT
Description of problem:

When switching from bash to zsh the environment initialization scripts in /etc/profile.d/krb5-*.sh fail.  They complain about pathmunge not being defined.  zsh continues to work, just a bothersome message and no krb paths.

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


How reproducible:


Steps to Reproduce:
1.  Make sure krb5-workstation and krb5-devel are installed
2.  log in using bash
3.  switch shells to zsh
Actual results:

platte:~$ zsh
/etc/profile.d/krb5-devel.sh:1: command not found: pathmunge
/etc/profile.d/krb5-devel.sh:2: command not found: pathmunge
/etc/profile.d/krb5-workstation.sh:1: command not found: pathmunge
/etc/profile.d/krb5-workstation.sh:2: command not found: pathmunge

Expected results:

platte:~$ zsh

Additional info:

On startup zsh appears to load /etc/zprofile which, in turn, sources /etc/profile.  /etc/profile then sources /etc/profile.d/*.sh

The pathmunge function is defined in /etc/profile but does not persist in scripts that are sourced.  Shell functions do persist in bash, I'm not sure why they don't in zsh.  In any case, it seems reasonable to me that snippets in /etc/profile.d should not make assumptions about the contents of /etc/profile?
Comment 1 Elliott Forney 2010-09-30 19:08:16 EDT

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

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