[Bug libc/3266] ldd doesn't work when /bin/sh is dash

richardvoigt at gmail dot com sourceware-bugzilla@sourceware.org
Wed Jul 4 15:47:00 GMT 2007


------- 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.



More information about the Glibc-bugs mailing list