<p>Because each shell has its own configuration file which can contain<br>
different environment settings, it is useful to be able to specify<br>
which shell Geany should use.</p>
<p>To limit the shells to only those we know that work with Geany, this<br>
implementation only allows users to select from /bin/sh, /bin/bash and<br>
/bin/zsh. More shells can be added in the future.</p>
<p>The affected places where we used hard-coded /bin/sh are:</p>
<ol>
<li>Running commands (in VTE or without, with launch script or without)</li>
<li>Build commands</li>
<li>Print command</li>
</ol>
<p>On macOS, the shell defaults to /bin/bash, on other systems to /bin/sh.</p>
<p>For more discussion see <a class="issue-link js-issue-link" data-error-text="Failed to load issue title" data-id="503884339" data-permission-text="Issue title is private" data-url="https://github.com/geany/geany/issues/2344" data-hovercard-type="issue" data-hovercard-url="/geany/geany/issues/2344/hovercard" href="https://github.com/geany/geany/issues/2344">#2344</a></p>

<hr>

<h4>You can view, comment on, or merge this pull request online at:</h4>
<p>  <a href='https://github.com/geany/geany/pull/2363'>https://github.com/geany/geany/pull/2363</a></p>

<h4>Commit Summary</h4>
<ul>
  <li>Make the shell used by Geany to run various commands configurable</li>
</ul>

<h4>File Changes</h4>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/geany/geany/pull/2363/files#diff-0">data/geany.glade</a>
    (44)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/geany/geany/pull/2363/files#diff-1">src/build.c</a>
    (17)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/geany/geany/pull/2363/files#diff-2">src/keyfile.c</a>
    (11)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/geany/geany/pull/2363/files#diff-3">src/prefs.c</a>
    (13)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/geany/geany/pull/2363/files#diff-4">src/prefs.h</a>
    (10)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/geany/geany/pull/2363/files#diff-5">src/printing.c</a>
    (5)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/geany/geany/pull/2363/files#diff-6">src/utils.c</a>
    (10)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/geany/geany/pull/2363/files#diff-7">src/utils.h</a>
    (2)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/geany/geany/pull/2363.patch'>https://github.com/geany/geany/pull/2363.patch</a></li>
  <li><a href='https://github.com/geany/geany/pull/2363.diff'>https://github.com/geany/geany/pull/2363.diff</a></li>
</ul>

<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/pull/2363?email_source=notifications&email_token=AAIOWJ74AWEO3C5P3MEX2VTQO5Z6HA5CNFSM4JBQUAVKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HSIVRWA">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAIOWJ6JKTP6UJ5IGVRZAW3QO5Z6HANCNFSM4JBQUAVA">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AAIOWJZ37LWUS6NIRZYGVITQO5Z6HA5CNFSM4JBQUAVKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HSIVRWA.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/pull/2363?email_source=notifications\u0026email_token=AAIOWJ74AWEO3C5P3MEX2VTQO5Z6HA5CNFSM4JBQUAVKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HSIVRWA",
"url": "https://github.com/geany/geany/pull/2363?email_source=notifications\u0026email_token=AAIOWJ74AWEO3C5P3MEX2VTQO5Z6HA5CNFSM4JBQUAVKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HSIVRWA",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>