Skip to content

[linux] Version-string leaks: uname/arch --version prints 'niubash engine builtin', bash --version drops the Copyright/License block #240

Closed

Description

@caomengxuan666

P2 identity leaks observed on the Linux build (wt4/linuxrun) vs GNU/coreutils on WSL. (The main bash --version first line is already correct on Linux: 'GNU bash, version 5.3.0(1)-release (x86_64-pc-linux-gnu)' - the msys triple leak from ledger E3 is fixed; these are the remaining leaks.)

1. uname --version / arch --version (engine identity tool, src/builtins/uname.rs version_banner):

 GNU: uname (GNU coreutils) 9.4
RUB: uname (niubash engine builtin) <ver>

Internal engine naming ('niubash') leaks into tool output; scripts scraping tool banners see a nonexistent coreutils version.

2. bash --version body (src/main.rs / help.rs version surface):

 GNU: 4+ lines: version line + 'Copyright (C) 2025 Free Software Foundation, Inc.' + 'License GPLv3+...' + 'This is free software...'
RUB: version line only

Also type uname after execution shows 'uname is /usr/bin/uname' where GNU shows 'uname is hashed (/usr/bin/uname)' (hash-table wording) - cosmetic, same family.

Context: identity.rs unix arms were corrected this lane (uname(2) utsname fields, OSTYPE=linux-gnu, GNU/Linux) - these banner/version strings are the leftover naming-policy surface. Decision needed on what the engine SHOULD print (policy question: mimic coreutils text exactly vs engine-honest text), hence filed as one issue rather than fixed unilaterally.

Artifacts: probe_uname.sh run (this lane), p1p2_identity probe.

Activity

  1. added
    bug
    on Sep 27, 2026
  2. caomengxuan666 commented on Sep 27, 2026

    @caomengxuan666
    MemberAuthor

    已修复并合入 master(commit b2e41b4e,lane wt4/linuxfix;GNU 引用与验证见提交信息:Linux 真机 WSL 双壳验证、24 套件平价 17→19)。感谢报告!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions