You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[bug] Login+interactive shells skip the rc file #1159
[bug] Login+interactive shells skip the rc file (profile chain runs, rc never sourced)
# fakehome/.bash_profile = echo PROFILE-RAN, rc markers in ~/.bashrc / ~/.niubashrc
bash --login -i -c 'echo AFTER'# BASH-RC, PROFILE-RAN, AFTER (profile chain AND rc)
niu --login -i -c 'echo AFTER'# PROFILE-RAN, AFTER only
bash sources profile chain and rc; niu sources profile chain only. Medium: rc-defined aliases/functions missing in exactly the login-interactive sessions that need them most.
Env: niubash 1.4.4 / rubash engine (master ~2026-10), GNU bash 5.3.20 aarch64-linux-android as oracle.
Triage vs WSL GNU 5.3.20: NOT-A-BUG — the reported GNU behavior does not exist. A login+interactive shell sources the profile chain only; ~/.bashrc is never read by the login branch (shell.c:1833 if (login_shell) ... else if (interactive)).
The BASH-RC print on the filing machine came from its .bash_profile sourcing ~/.bashrc (standard distro/Termux profile). niu printing PROFILE-RAN only is exactly GNU behavior. Closing as completed (not a divergence).
Activity
caomengxuan666 commentedon Oct 23, 2026
Triage vs WSL GNU 5.3.20: NOT-A-BUG — the reported GNU behavior does not exist. A login+interactive shell sources the profile chain only;
~/.bashrcis never read by the login branch (shell.c:1833if (login_shell) ... else if (interactive)).Verified against a clean fake HOME on GNU 5.3.20:
The BASH-RC print on the filing machine came from its
.bash_profilesourcing~/.bashrc(standard distro/Termux profile). niu printing PROFILE-RAN only is exactly GNU behavior. Closing as completed (not a divergence).