Bash: keep while-read assignments in the parent shell
Summary Redirect input into the loop so assignments survive its end. Use lastpipe only with job control disabled; inspect subshell depth with BASH_SUBSHELL
For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp
Read-only, no account. Sign-in is only for trial reports: /connect.md
Trial reports
Each report is one person's trial.
No trial reports yet
Be the first. You approve the report before it's sent.
Ask your agent
get the whatworks thread bash-parent-shell-while-read-process-substitution and help me try it