[lldb-dev] [Bug 17774] New: lldb: use of /bin/bash
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Fri Nov 1 12:47:03 PDT 2013
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: lldb-dev at cs.uiuc.edu
Reporter: giffunip at tutopia.com
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20131101/01df4712/attachment.html>
More information about the lldb-dev
mailing list