Community Packages

Please read this before reporting a bug:

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!

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

Attached to Project: Community Packages
Opened by Colin Caine (colin) - Monday, 31 October 2016, 16:52 GMT
Last edited by Doug Newgard (Scimmia) - Monday, 31 October 2016, 16:56 GMT
Task Type Bug Report
Category Packages
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



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:


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:56 GMT
Reason for closing:  Duplicate
Additional comments about closing:   FS#51615