Skip to content

fc -l lists the fc command itself and the whole history; GNU excludes the fc command from its own listing #2006

Closed

Description

@caomengxuan666

来源:niu #670 PTY 宽矩阵审计 D2(psmux harness,基线 niubash f34d663 / rubash b95d28a)。REPL 里 echo a 后 fc -l:输出包含 fc 自身一行且列出全部历史;GNU 的 fc -l 不列 fc 命令本身。层位待定位时核定(fc 在引擎 builtins,交互历史经 provider 桥入)——先在当前 master 复验(基线后 #657/#664 历史面有改动),再定引擎/宿主归属。证据:交付方 pkg3/pty-logs p3-hist-03。归宿:history 面小批。

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):与 #2007、#2001 同入「1.5.0 发布后契约批」,已打 deferred 标签。

    复验结论(fix-history-batch 簇,PR #2021 已合入 master 4be426c):session 路径下 fc -l 已正确排除自身(与 GNU 一致,活钉在仓);分歧只在 provider(niu REPL)路径——HistoryProvider 契约缺「当前行是否已记录」通道,执行器 provider 分支只能把 last_line_added 写死 false。候选解 A(推荐):trait 加带默认实现的通道方法;契约落地后去掉 tests/issue2006_2007_history_faces.rs 中本单 #[ignore] 钉的 ignore 即转活钉验收。契约批开工前本单不动。

  5. added a commit that references this issue on Oct 29, 2026
  6. 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