You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[bug] command_not_found_handle never invoked #1080
[bug] command_not_found_handle never invoked (HIGH)
command_not_found_handle(){ echo"HANDLED:$1/$2"; return 42; }
nosuchcmd a b;echo"rc=$?"# GNU bash 5.3: stdout HANDLED:nosuchcmd/a, rc=42, stderr empty# niu: stdout rc=127, stderr `nosuchcmd: command not found`
Handler args, rc propagation (return 42/return 0 both →127 in niu), invocation inside functions and subshells all fail identically. Definition/storage is fine (declare -f/type show it). Breaks the standard missing-command hook (package-manager suggestions, typo correctors, agent harnesses).
Env: niubash 1.4.4 / rubash engine (master ~2026-10), GNU bash 5.3.20 aarch64-linux-android as oracle.
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.
Activity
caomengxuan666 commentedon Oct 23, 2026
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
Fixeslist, 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.