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
Fixed end-to-end by rubash PR #628 (7107279) and Niubash PR #363 (ffee8fb6), both merged after green CI.
Library direct invocation tests 8/8, invocation units 9/9, existing native restricted entry tests 5/5. Niubash latest upstream without override: startup matrix 26/26, actual ConPTY tests 2/2, greeting/precmd boundary unit 1/1. Independent smoke checks for both -r and --restricted with -c echo ok now return rc=0 with stdout ok and empty stderr.
The implementation preserves the GNU startup boundary: startup can cd and assign PATH, restrictions activate before hooks/user body, startup set -r is not cleared, and named -o restricted remains invalid. No host-side semantic workaround. The unrelated known background-job Ctrl-D timeout remains documented, not claimed fixed.
Activity
fix(invocation): separate restricted entry flags from named options (#…
fix(startup): activate restricted invocation after startup files (#363)
caomengxuan666 commentedon Oct 15, 2026
Fixed end-to-end by rubash PR #628 (7107279) and Niubash PR #363 (ffee8fb6), both merged after green CI.
Library direct invocation tests 8/8, invocation units 9/9, existing native restricted entry tests 5/5. Niubash latest upstream without override: startup matrix 26/26, actual ConPTY tests 2/2, greeting/precmd boundary unit 1/1. Independent smoke checks for both -r and --restricted with -c echo ok now return rc=0 with stdout ok and empty stderr.
The implementation preserves the GNU startup boundary: startup can cd and assign PATH, restrictions activate before hooks/user body, startup set -r is not cleared, and named -o restricted remains invalid. No host-side semantic workaround. The unrelated known background-job Ctrl-D timeout remains documented, not claimed fixed.