<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div class="">I’m trying to update port clam-server to the new syntax, and am hitting the following issue. As far as I can tell, it looks like a bug. The command `port destroot clam-server` with Macports 2.6.3 fails with this error:</div><div class=""><br class=""></div><div class=""><blockquote type="cite" class=""><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">---> Creating launchd control script 'ClamavScanOnAccess'</span></div><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">Error: Failed to destroot clamav-server: list element in quotes followed by ")" instead of space</span></div></blockquote></div><div class=""><br class=""></div><div class="">I’ve tracked this down to the bash line:</div><div class=""><br class=""></div><div class=""><blockquote type="cite" class=""><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgb(157, 0, 3); background-color: rgb(255, 255, 206);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">DATE=(/bin/date \"+%FT%T\")"</span></div></blockquote></div><div class=""><br class=""></div>I am unable to insert any string of this form into the startupitems init/start/stop commands without encountering this error.<div class=""><br class=""></div><div class=""><blockquote type="cite" class=""><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgb(114, 0, 76); background-color: rgb(255, 255, 206);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">FOO=(\"BAR \")</span></div></blockquote><div class=""><blockquote type="cite" class=""><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgb(114, 0, 76); background-color: rgb(255, 255, 206);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">FOO=\(\"BAR \"\)</span></div></blockquote></div><div class=""><br class=""></div><div class="">To the best of my knowledge, this should be seen as a simple string by tcl, and inserted into the startup item, as it is done correctly in Macports 2.6.2.</div><div class=""><br class=""></div><div class="">Is this a bug in Macports 2.6.3? Or some subtle escape character issue?</div><div class=""><br class=""><div><br class=""><blockquote type="cite" class=""><div class=""><div class=""><blockquote type="cite" class="">On the assumption that it is, I believe this is the fix:<br class=""><br class=""><a href="https://github.com/macports/macports-base/pull/191" class="">https://github.com/macports/macports-base/pull/191</a><br class=""></blockquote><br class="">The bug has been fixed in 2.6.3. Some ports will need to adjust their usage of startupitems to be compatible with this change. I believe there are only 4 ports affected, mentioned in that PR, for which I've filed tickets or PRs.<br class=""></div></div></blockquote></div><br class=""></div></div></body></html>