<blockquote>
<p>Can you check what sh actually runs?</p>
</blockquote>
<p>Just checked, on Solus <code>sh</code> is symlinked to <code>bash</code>, on Debian 10 to <code>dash</code>...</p>
<p>You're right in that not using <code>-c</code> works for both. No idea what a true <code>sh</code>'s behavior would be</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/2374?email_source=notifications&email_token=AAIOWJZVGVNEMDEDKD6CQW3QPQIMHA5CNFSM4JCQ2A4KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEBYFAJI#issuecomment-544231461">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAIOWJZIM5JI3DXH4BO7NSDQPQIMHANCNFSM4JCQ2A4A">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AAIOWJ65C2XCDDSEK7HDCTTQPQIMHA5CNFSM4JCQ2A4KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEBYFAJI.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/geany/geany/issues/2374?email_source=notifications\u0026email_token=AAIOWJZVGVNEMDEDKD6CQW3QPQIMHA5CNFSM4JCQ2A4KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEBYFAJI#issuecomment-544231461",
"url": "https://github.com/geany/geany/issues/2374?email_source=notifications\u0026email_token=AAIOWJZVGVNEMDEDKD6CQW3QPQIMHA5CNFSM4JCQ2A4KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEBYFAJI#issuecomment-544231461",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>