FS#51615 - /etc/zsh/zprofile clobbers PATH.

Attached to Project: Arch Linux
Opened by Colin Caine (colin) - Monday, 31 October 2016, 16:40 GMT
Last edited by Doug Newgard (Scimmia) - Monday, 31 October 2016, 16:50 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To No-one
Architecture All
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

It is customary in zsh land to set PATH in .zshenv. This is even recommended in the documentation.

zsh sources startup files in the following order if it is a login shell:

/etc/zsh/zshenv
.zshenv
/etc/zsh/zprofile
.zprofile
/etc/zsh/zshrc
.zshrc
/etc/zsh/zlogin
.zlogin

So PATH is set by .zshenv before /etc/zprofile is sourced.

Arch's packaged /etc/zprofile simply sources /etc/profile. /etc/profile clobbers PATH.

Possible fixes:

1) Make zprofile save the existing PATH and merge after sourcing /etc/profile
2) mv /etc/zprofile /etc/zshenv
This task depends upon

Closed by  Doug Newgard (Scimmia)
Monday, 31 October 2016, 16:50 GMT
Reason for closing:  Duplicate
Additional comments about closing:   FS#35966 

And certainly not "High" Severity.

Loading...