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] $BASHPID inside async ( ) subshell is off-by-one #1095
P1-high高:核心语义或高频路径受损,影响日常使用/发布area:jobsjobs, signals, process ownership, coprocbugSomething isn't workinggnu-baselineTracked by the GNU Bash 5.3.0 true-baseline ledger
(sleep 0.2;echo"child-self=$BASHPID") &echo"parent-dollar-bang=$!"wait# GNU bash 5.3: child-self == parent-$! (e.g. both 30593)# niu: child-self = $!+1 (e.g. 30685 vs 30684)
Consequence over 6+ runs each: (sleep 0.3; kill -TERM $BASHPID) & wait $! → bash 6/6 rc=143; niu ~50% kill: (PID) - No such process / Permission denied / SURVIVED, and with two concurrent subshells the TERM lands on the sibling (w1=0, w2=143 instead of w1=143, w2=9). Parent-sent signals + wait -n attribution are fine — purely the reported $BASHPID value.
Env: niubash 1.4.4 / rubash engine (master ~2026-10), GNU bash 5.3.20 aarch64-linux-android as oracle.
P1-high高:核心语义或高频路径受损,影响日常使用/发布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…