<div class="chatlog__message-group"> <div id="chatlog__message-container-1344664262005620756" class="chatlog__message-container" data-message-id="1344664262005620756"> <div class="chatlog__message"> <div class="chatlog__message-aside"><img class="chatlog__avatar" src="https://cdn.discordapp.com/avatars/127674083331538944/4893b43ea9ee2231b8ffb8b05c305ce3.png?size=512" alt="Avatar" loading="lazy"></div> <div class="chatlog__message-primary"> <div class="chatlog__header"><span class="chatlog__author" style="color:rgb(155,89,182)" title="norio_nomura" data-user-id="127674083331538944">norio_nomura</span> <a href="/channels/383442648012423179?category=main&channel=wasm&message_id=1344664262005620756"><span class="chatlog__timestamp" title="Thursday, February 27, 2025 1:35 PM"></span></a><a href="#chatlog__message-container-1344664262005620756">2/27/2025 1:35 PM</a></div> <div class="chatlog__content chatlog__markdown"><span class="chatlog__markdown-preserve"><code class="chatlog__markdown-pre chatlog__markdown-pre--inline">jq</code>に<code class="chatlog__markdown-pre chatlog__markdown-pre--inline">-e</code>を渡すとクエリが<code class="chatlog__markdown-pre chatlog__markdown-pre--inline">null</code>でコマンド失敗になるから、エラー処理できるかも。 <code class="chatlog__markdown-pre chatlog__markdown-pre--inline">jq -e -r --arg v "$V" '.[$v] | .[-1]')"</code></span></div> </div> </div> </div> </div>