[Bug 17774] New: lldb: use of /bin/bash

Bug ID 17774
Summary lldb: use of /bin/bash
Product lldb
Version unspecified
Hardware PC
Status NEW
Severity normal
Priority P
Component All Bugs
Assignee lldb-dev@cs.uiuc.edu
Reporter giffunip@tutopia.com
Classification Unclassified

Created attachment 11472 [details]
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.


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.

emaste@freebsd.org changed bug 17774