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
echo'echo MARKER'>~/.bashrc
bash -i -c 'echo AFTER'# prints MARKER + AFTER
niu -i -c 'echo AFTER'# prints AFTER only
Mirror test with ~/.niubashrc → niu reads it, bash ignores it. Possibly intentional (different shell, different rc name — like zsh vs bash), but then every ~/.bashrc-based setup is silently dead under niu and first-run migration needs an answer (auto-import? warning?). Needs triage, not necessarily a code fix.
Env: niubash 1.4.4 / rubash engine (master ~2026-10), GNU bash 5.3.20 aarch64-linux-android as oracle.
The rubash engine implements the GNU file names on non-Windows builds: nonlogin_interactive_files() sources /etc/bash.bashrc + ~/.bashrc (src/invocation.rs:495); .niubashrc is not an engine name.
On Windows, rubash.exe sources no startup files at all — run_startup_files is #[cfg(not(windows))]-gated (src/main.rs:1497-1541, "no real login concept… no sourcing, no regression"). Verified: rubash.exe -i reads neither .bashrc nor .niubashrc.
~/.niubashrc is therefore a niu-host startup choice layered on top of the engine, not an engine behavior. The migration-path question (auto-import .bashrc? warning?) is a product decision for the niu host — the engine side already follows GNU naming where it sources files at all.
Leaving open as a product question rather than an engine bug; no P-label applied.
Retest on niu 1.4.4 / rubash 1b14a3d vs GNU bash 5.3.20 (isolated HOME with both files present):
HOME=$fake timeout 10 niu -i -c 'echo hi'
RC-NIURAN
hi
HOME=$fake timeout 10 niu -i -c 'echo hi' # .niubashrc removed, only .bashrc
hi
niu -i still reads only ~/.niubashrc and ignores ~/.bashrc entirely. Per #1187 (scope note): the engine contract shipped, but niu.exe runs its own startup chain (niubash-runtime::shell::run_startup_files) — the niubash-side delegation is still pending. Reopening to track the product follow-up.
Activity
caomengxuan666 commentedon Oct 23, 2026
Triage facts (rubash engine @ e743db8, WSL GNU 5.3.20):
~/.bashrc(verified:env HOME=fakehome bash -i -c→ bashrc runs).nonlogin_interactive_files()sources/etc/bash.bashrc+~/.bashrc(src/invocation.rs:495);.niubashrcis not an engine name.run_startup_filesis#[cfg(not(windows))]-gated (src/main.rs:1497-1541, "no real login concept… no sourcing, no regression"). Verified:rubash.exe -ireads neither.bashrcnor.niubashrc.~/.niubashrcis therefore a niu-host startup choice layered on top of the engine, not an engine behavior. The migration-path question (auto-import.bashrc? warning?) is a product decision for the niu host — the engine side already follows GNU naming where it sources files at all.Leaving open as a product question rather than an engine bug; no P-label applied.
Merge pull request #1187 from unixwin/fix/1158-bashrc-compat
caomengxuan666 commentedon Oct 23, 2026
Retest on niu 1.4.4 / rubash 1b14a3d vs GNU bash 5.3.20 (isolated HOME with both files present):
niu -istill reads only~/.niubashrcand ignores~/.bashrcentirely. Per #1187 (scope note): the engine contract shipped, butniu.exeruns its own startup chain (niubash-runtime::shell::run_startup_files) — the niubash-side delegation is still pending. Reopening to track the product follow-up.caomengxuan666 commentedon Oct 23, 2026
Engine side verified fixed (rubash -i reads .bashrc, with .niubashrc fallback). Remaining concern is niu-host startup delegation — tracked separately. Closing engine-side.