http://llvm.org/bugs/show_bug.cgi?id=17774

            Bug ID: 17774
           Summary: lldb: use of /bin/bash
           Product: lldb
           Version: unspecified
          Hardware: PC
                OS: FreeBSD
            Status: NEW
          Severity: normal
          Priority: P
         Component: All Bugs
          Assignee: [email protected]
          Reporter: [email protected]
    Classification: Unclassified

Created attachment 11472
  --> http://llvm.org/bugs/attachment.cgi?id=11472&action=edit
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.

http://lwn.net/Articles/343924/

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.

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
lldb-dev mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev

Reply via email to