Skip to content

[bug] compgen -A signal emits 33 empty lines; pseudo/RT signals missing #1043

Closed

Description

@caomengxuan666

[bug] compgen -A signal emits 33 empty lines; pseudo/RT signals missing

compgen -A signal | grep -c '^$'; compgen -A signal | grep -c EXIT
# GNU bash 5.3:  0 / 1   (68 lines: EXIT...SIGRTMIN...SIGRTMAX, DEBUG, ERR, RETURN)
# niu:           33 / 0  (64 lines, last 33 blank)

Related to #1036 (RT signals in trap -l/kill -l) but a different surface: compgen output shape.

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
    P2-medium
    on Oct 22, 2026
  2. caomengxuan666 commented on Oct 23, 2026

    @caomengxuan666
    MemberAuthor

    Verified fixed on master ff1a555 (release build). compgen -A signal output is byte-identical to WSL GNU Bash 5.3.20:

    compgen -A signal | grep -c '^$'; compgen -A signal | grep -c EXIT; compgen -A signal | wc -l
    # rubash: 0 / 1 / 68   GNU 5.3.20: 0 / 1 / 68
    # diff of full 68-line lists: identical (EXIT, SIGHUP..SIGRTMAX, DEBUG, ERR, RETURN)
    

    Fixed by 541b2c5 fix(complete): compgen action lists match GNU signal/service/variable/arrayvar/hostname/binding generators — signal candidates now model it_init_signals (pcomplete.c:606): unnamed trap-table slots render as SIGJUNK(n) instead of blank lines, and DEBUG/ERR/RETURN close the list.

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

    P2-mediumarea:builtinsbuggnu-baseline

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions