Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • aports aports
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Graph
    • Compare revisions
  • Issues 671
    • Issues 671
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 290
    • Merge requests 290
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Releases
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar

Our ARM infrastructure is unreachable at the moment, so CI jobs will time-out and packages will not be updated until the servers are back.

  • alpinealpine
  • aportsaports
  • Issues
  • #11371
Closed
Open
Issue created Apr 08, 2020 by Dana Davidsen@danaliv

main/zsh: /etc/zsh/zprofile tries and fails to add $HOME/bin to PATH

/etc/zsh/zprofile tries to append $HOME/bin to PATH, but fails to do so. /etc/zsh/zprofile contains the following on lines 5 and 6:

PATH="$PATH:$HOME/bin"
export PATH

However, the very next thing /etc/zsh/zprofile does is source /etc/profile, which does this:

export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

This clobbers the changes made on lines 5 and 6.

I'd suggest either:

  • deleting lines 5 and 6 from /etc/zsh/zprofile, or
  • moving them to the end of the file after _src_etc_profile gets run.

(There's an argument to be made that PATH shouldn't be set in zprofile at all, but I'll save that for another day. 😇)

Steps to reproduce:

  1. apk add zsh
  2. zsh -l
  3. echo $PATH
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking