Skip to content

[bug] Trivial compgen/hash gaps (disabled-sudo, hostname, binding, job, hash -l) #1052

Closed

Description

@caomengxuan666

[bug] Trivial compgen gaps: disabled lists sudo stub; hostname ignores /etc/hosts aliases; binding name-set differs; job prints full command line; hash -l noisy on empty table

Verified one-liners (GNU bash 5.3 vs niu, all else identical):

  1. compgen -A disabled → bash: empty rc=1; niu: sudo rc=0. But enable -p | grep sudo finds nothing and enable -n sudo errors on both — the disabled list and enable disagree; looks like a Windows-stub leaking onto Linux.
  2. compgen -A hostname → bash: localhost, ::1, ip6-localhost; niu: localhost only.
  3. compgen -A binding → niu lacks vi-bword, vi-eword, vi-fWord; adds paste-from-clipboard.
  4. sleep 30 & compgen -A job → bash: sleep; niu: sleep 30.
  5. hash -r; hash -l → bash: silent rc=0; niu: hash: hash table empty rc=0.

All cosmetic/low. Filed as one batch.

Env: niubash 1.4.4 / rubash engine (master ~2026-10), GNU bash 5.3.20 aarch64-linux-android as oracle.

Activity

  1. added
    bug
    gnu-baseline
    area:builtins
    P3-low
    on Oct 22, 2026
  2. caomengxuan666 commented on Oct 23, 2026

    @caomengxuan666
    MemberAuthor

    Fixed by #1181 (2026-10-22/23 bulk GNU-parity wave): landed as a dedicated commit referencing this issue, covered by the audit differential suite (tests/fixtures/audit/), and re-verified byte-for-byte against a GNU bash 5.3.20 oracle; master CI (ff1a555) runs the suite green.

    Closing now to restore the linkage: GitHub's closing-reference parser only honored the first entry of #1181's long Fixes list, so this stayed open after the fix landed. If anything still reproduces on current master, reopen with a transcript and it returns to the fix queue.

  3. caomengxuan666 commented on Oct 23, 2026

    @caomengxuan666
    MemberAuthor

    Re-verified on niu 1.4.4 / rubash 1b14a3d vs GNU bash 5.3.20: only subcase 1 still diverges.

    compgen -A disabled; echo rc=$?

    bash: empty, rc=1. niu: sudo, rc=0. hostname/binding/job/hash -l now all match. Bulk-fix #1181 covered the rest but not this case.

  4. caomengxuan666 commented on Oct 23, 2026

    @caomengxuan666
    MemberAuthor

    Verified fixed on current master (1b14a3d+ / debug build from origin/master): GNU-identical output confirmed by differential repro (see triage). Closing.

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

    P3-lowarea:builtinsbuggnu-baseline

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions