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
pushd 边角两分歧(#889 CR 记录):pushd -- -n GNU cd 失败 rc 1 vs rubash usage rc 2;pushd - 疑似同族 #896
Root cause (GNU C source, third_party/bash 5.3 p15): leading -- sets skipopt and skips the walk (pushd.def:183-190); lone - breaks the walk as a Dir operand (pushd.def:223-225) routed through cd - (cd.def:339-349); option-only lists are silent success (pushd.def:288); multi-word Dir is too many arguments rc 1 via CD_COMPLAINS (cd.def:326-330).
pushd -- -n is now pushd: -n: No such file rc 1 (was usage rc 2); pushd - echoes $OLDPWD + stack rc 0; pushd -n/-n -- alone are silent rc 0 (no longer swap); extras on the cd path are too many arguments rc 1 with no usage line. Full matrix verified byte-identical vs WSL GNU bash 5.3.0; new tests/issue896 (9 tests).
Note: pushd +1 -n (should be silent NOCD rotation) and pushd +1 +9 (should be inline range error) remain pre-existing divergences in the same walk - left for a follow-up, documented in the commit/PR.
Close-out: fixed on master via #901 (commit 62a30ab, merged after rebase over #889). dash-family option walk now follows GNU pushd.def: leading -- sets skipopt, lone - routes through cd -, option-only lists are silent success. Master CI green (Rust/macOS/cross-target/shell-functionality/goldens). No separate local re-verification run from me on this one - the PR's own WSL 5.3.15 byte comparison plus master CI cover it.
Activity
arookieofc commentedon Oct 19, 2026
Fixed by #901.
Root cause (GNU C source, third_party/bash 5.3 p15): leading
--sets skipopt and skips the walk (pushd.def:183-190); lone-breaks the walk as a Dir operand (pushd.def:223-225) routed throughcd -(cd.def:339-349); option-only lists are silent success (pushd.def:288); multi-word Dir istoo many argumentsrc 1 via CD_COMPLAINS (cd.def:326-330).pushd -- -nis nowpushd: -n: No such filerc 1 (was usage rc 2);pushd -echoes $OLDPWD + stack rc 0;pushd -n/-n --alone are silent rc 0 (no longer swap); extras on the cd path aretoo many argumentsrc 1 with no usage line. Full matrix verified byte-identical vs WSL GNU bash 5.3.0; new tests/issue896 (9 tests).Note:
pushd +1 -n(should be silent NOCD rotation) andpushd +1 +9(should be inline range error) remain pre-existing divergences in the same walk - left for a follow-up, documented in the commit/PR.Merge origin/master (PR #889): unify pushd -n no-op as NoOp under #896 …
arookieofc commentedon Oct 19, 2026
CI 全绿:PR #901 的 5 项检查(Rust tests、macOS、GNU regression goldens、cross-target、shell functionality)全部 pass。合并 origin/master(PR #889 的 #859 NoOp)后的冲突已解决:保留 #896 的完整 dash-family option walk,拼写统一为已合入的 NoOp。WSL GNU 5.3.15 双侧逐字节对照一致(仅 tmpdir/路径显示等环境 artifact 除外)。待合入。
fix #896: pushd `--`/`-` dash family follows the GNU option walk (#901)
arookieofc commentedon Oct 20, 2026
Close-out: fixed on master via #901 (commit 62a30ab, merged after rebase over #889). dash-family option walk now follows GNU pushd.def: leading -- sets skipopt, lone - routes through cd -, option-only lists are silent success. Master CI green (Rust/macOS/cross-target/shell-functionality/goldens). No separate local re-verification run from me on this one - the PR's own WSL 5.3.15 byte comparison plus master CI cover it.
docs(ledger): record run_script_with_history_at_line_offset_classified