<p>IMO the tool is mostly at fault spamming <code>stderr</code> when all is well; proper UNIX commands are supposed to be quiet by default when all is well.</p>

<p>Also, Geany considering content on <code>stderr</code> means a failure is IIRC due to some tool improperly exiting with exit status 0 while having failed.  So that's a workaround already, but so long seemed ok (and it's like this for a long time) -- and we probably <em>should</em> take the safest path here.  The only way to fix would be to enhance the Custom Commands so you can select the behavior, but it might be out of its scope.</p>

<p>So IMO your workaround to silence the tool is the best way to go.  But exiting with <code>0</code> no matter what seem dangerous. You probably could simply use <code>sh -c 'yourcommand 2>/dev/null'</code> as the custom command.</p>

<p>PS: don't tell anyone, but I once planned to write a plugin for enhanced custom commands-like functionality, that could allow for all this fancy options, and more.  But it's not done yet.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/geany/geany/issues/1118#issuecomment-230902940">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe/ABDrJ-QAWvFN88JjzYhP2nTDG5ClABO3ks5qTBWmgaJpZM4JGRv0">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/ABDrJ0mINizw03dk3iIpKsOQvdM0zQJEks5qTBWmgaJpZM4JGRv0.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/geany/geany/issues/1118#issuecomment-230902940"></link>
  <meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>