8 Jul
2025
8 Jul
'25
2:21 a.m.
On 2025-07-07 20:25, S. Shuck wrote:
Can you use printf "%q" "$something_with_weird_character"? That format specifier will shell-escape whatever you use. See man printf
Thanks, using its output (literally, not enclosing it in $()) worked! PS: I noticed that in my original email I had accidentally omitted the `' --` from my DLAGENTS string. Rest assured (hah) that version still fails regardless. A mystery why, but it works with the %q approach! -- Cheers, Aᴀʀᴏɴ