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] jobs -x substitutes job PID, GNU substitutes process-group ID #1096
P2-medium中:次要缺陷或边缘路径,排期修复area:jobsjobs, signals, process ownership, coprocbugSomething isn't workinggnu-baselineTracked by the GNU Bash 5.3.0 true-baseline ledger
[bug] jobs -x substitutes the job PID, GNU substitutes the process-group ID
sleep 30 &
jp=$!echo"jobpid=$jp pgid=$(ps -o pgid= -p $jp)"jobs -x echo %1
# GNU bash 5.3: jobpid=4844 pgid=4842, prints 4842 (the pgid — POSIX: jobspec → pgroup ID)# niu: jobpid=4880 pgid=4854, prints 4880 (the pid)
Visible consequence: sleep 2 & jobs -x kill %1; sleep 0.3; echo alive → bash kills its own pgroup-pid (self-TERM, script dies rc=143, alive never prints); niu kills only the job and continues (alive, rc=0). (Standalone %1 must be used — embedded %1 is literal in both.)
Env: niubash 1.4.4 / rubash engine (master ~2026-10), GNU bash 5.3.20 aarch64-linux-android as oracle.
P2-medium中:次要缺陷或边缘路径,排期修复area:jobsjobs, signals, process ownership, coprocbugSomething isn't workinggnu-baselineTracked by the GNU Bash 5.3.0 true-baseline ledger
Activity
fix(jobs): BASHPID in async subshell, jobs -x pgrp, suspend -f (rubas…