Skip to content

history numbering resets to 1 after HISTSIZE trimming; GNU keeps the global sequence (offset) #2007

Closed

Description

@caomengxuan666

来源:niu #670 PTY 宽矩阵审计 D3(基线 niubash f34d663 / rubash b95d28a)。HISTSIZE=3 后连续 echo h1..h4 再 history:序号从 1 重编;GNU 保持全局连续序号(内部 offset)。先在当前 master 复验(基线后 #657 HistoryStore 与 #664 均动过历史面),层位(引擎历史编号 vs 宿主 store)定位时核定。证据:交付方 pkg3/pty-logs p3-hist-04。归宿:history 面小批,与 fc -l 同批。

Activity

  1. added
    bug
    gnu-baseline
    P2-medium
    area:builtins
    on Oct 28, 2026
  2. added a commit that references this issue on Oct 29, 2026
  3. added
    deferred
    on Oct 29, 2026
  4. caomengxuan666 commented on Oct 29, 2026

    @caomengxuan666
    MemberAuthor

    归宿裁定(主会话,2026-10-29):与 #2006、#2001 同入「1.5.0 发布后契约批」,已打 deferred 标签。

    复验结论(fix-history-batch 簇,PR #2021 已合入 master 4be426c):session 路径下 HISTSIZE 裁剪后编号保持全局连续(与 GNU 一致,活钉在仓);分歧只在 provider(niu REPL)路径——HistoryProvider 契约缺展示 base 通道,宿主裁剪后的尾巴只能从 1 重编。同根附带面:provider 分支 history -d 正数偏移同样按 base=1 解释,契约批一并纳入范围。候选解 A(推荐):trait 加带默认实现的 base 通道;落地后去掉 tests/issue2006_2007_history_faces.rs 中本单 #[ignore] 钉的 ignore 即转活钉验收。

  5. added a commit that references this issue on Oct 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

P2-mediumarea:builtinsbugdeferredgnu-baseline

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions