Skip to content

[bug] compgen -F <missing-func> error escapes all redirections #1041

Closed

Description

@caomengxuan666

[bug] compgen -F <missing-func> "function not found" escapes ALL redirections

compgen -F _nosuchfunc_xyz -- "" 2>e.txt >o.txt; echo "rc=$?"
# GNU bash 5.3:  o.txt empty; e.txt gets BOTH warning + `completion: function ... not found`; rc=1
# rubash:        o.txt empty; e.txt gets warning ONLY; the `not found` line lands on the
#                session stderr, bypassing both redirects entirely; rc=1

Completion-error capture is impossible — the diagnostic escapes to wherever the terminal is.

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:fd
    P2-medium
    on Oct 22, 2026
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:fdbuggnu-baseline

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions