Bug 523988 - /etc/profile overwrites PATH
Summary: /etc/profile overwrites PATH
Status: NEW
Alias: None
Product: openSUSE Tumbleweed
Classification: openSUSE
Component: Basesystem (show other bugs)
Version: Current
Hardware: x86-64 openSUSE 11.1
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: Ismail Dönmez
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-07-21 20:29 UTC by Daniel Wagner
Modified: 2017-08-11 09:39 UTC (History)
1 user (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Wagner 2009-07-21 20:29:32 UTC
User-Agent:       Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.0.7) Gecko/2009022800 SUSE/3.0.7-1.1.6 Firefox/3.0.7 AutoPager/0.5.2.2 (http://www.teesoft.info/)

There are several lines in /etc/profile which set PATH to a value that does not include the old value of $PATH.  This means that any manipulation of $PATH that occurs before /etc/profile is lost; in particular, I have

PATH=$HOME/links/bin:$PATH

in .zshenv, which runs before /etc/zprofile, which sources /etc/profile, which overwrites the above (but shouldn't).

Reproducible: Always

Steps to Reproduce:
1. Modify $PATH in .zshenv.
2. Start a zsh instance.
Actual Results:  
$PATH is short, and does not reflect the modifications in .zshenv.

Expected Results:  
$PATH should include the modifications done in .zshenv.
Comment 1 Simon Lees 2017-08-11 04:44:23 UTC
Assigning to correct maintainer to check