This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/3266] ldd doesn't work when /bin/sh is dash
- From: "richardvoigt at gmail dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 4 Jul 2007 15:47:09 -0000
- Subject: [Bug libc/3266] ldd doesn't work when /bin/sh is dash
- References: <20060926160242.3266.sqweek@gmail.com>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- Additional Comments From richardvoigt at gmail dot com 2007-07-04 15:47 -------
Anyway, I have a much shorter, much cleaner patch:
# environments where the executed program might not have permissions
# to write to the console/tty. But only bash 3.x supports the pipefail
# option, and we don't bother to handle the case for older bash versions.
-if set -o pipefail 2> /dev/null; then
+if (set -o pipefail) 2> /dev/null; then
+ set -o pipefail
try_trace() {
eval $add_env '"$@"' | cat
}
--
http://sourceware.org/bugzilla/show_bug.cgi?id=3266
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.