<html>
    <head>
      <base href="http://llvm.org/bugs/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - lldb: use of /bin/bash"
   href="http://llvm.org/bugs/show_bug.cgi?id=17774">17774</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>lldb: use of /bin/bash
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>lldb
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>FreeBSD
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>All Bugs
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>lldb-dev@cs.uiuc.edu
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>giffunip@tutopia.com
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=11472" name="attach_11472" title="Patch to replace bash with sh (based on FreeBSD's tree)">attachment 11472</a> <a href="attachment.cgi?id=11472&action=edit" title="Patch to replace bash with sh (based on FreeBSD's tree)">[details]</a></span>
Patch to replace bash with sh (based on FreeBSD's tree)

There is a general discussion in some linux distributions about the convenience
on using bash vs the traditional /bin/sh.

<a href="http://lwn.net/Articles/343924/">http://lwn.net/Articles/343924/</a>

While bash is considered a better experience for interactivity, it is known to
be slow and is also not installed by default on some systems like FreeBSD.

It should be preferred to use the more portable /bin/sh (there exists a nice
checkbashism tool that is useful to make scripts more portable).

If a script really requires bash, then we cannot count on /bin/bash being
available so the following shebang should be more portable:

#!/usr/bin/env bash

I looked at the lldb code on recent FreeBSD and replaced the occurrences of
bash with sh.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>