Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
alpine-baselayout
alpine-baselayout
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 3
    • Issues 3
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 0
    • Merge Requests 0
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Analytics
    • Analytics
    • CI / CD
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • alpine
  • alpine-baselayoutalpine-baselayout
  • Issues
  • #4

Closed
Open
Opened Dec 04, 2020 by Fredrik Gustafsson@fredrigu

Why isn't /etc/profile.d/ loaded for a non-login shell?

Looking into sourcing a script on shell start between different distributions seemed to be a tricky business. That is putting a shell script in /etc/profile.d/ and have it sourced on shell start.

We've found:

Distribution Bash(login) Bash (non-login) Zsh (login) Zsh (non-login)
Debian Yes No No No
Ubuntu Yes No No No
Fedora Yes Yes Yes Yes
Alpine Yes No Yes No

What's the reason for Alpine not sourcing /etc/profile.d/ when bash and zsh is not started as login shells? To me it seems as Fedora is doing the right thing here and none of the other distributions, but I admit that I might miss something here.

Edited Dec 04, 2020 by Fredrik Gustafsson
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
Reference: alpine/alpine-baselayout#4