[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[commits] r6913 - in /branches/eglibc-2_8/libc: ChangeLog.eglibc elf/ldd.bash.in
- To: commits@xxxxxxxxxx
- Subject: [commits] r6913 - in /branches/eglibc-2_8/libc: ChangeLog.eglibc elf/ldd.bash.in
- From: joseph@xxxxxxxxxx
- Date: Mon, 08 Sep 2008 17:37:03 -0000
Author: joseph
Date: Mon Sep 8 10:37:03 2008
New Revision: 6913
Log:
2008-09-08 Pete Eberlein <eberlein@xxxxxxxxxx>
* elf/ldd.bash.in: Make pipefail check more robust when using
non-bash shells.
Modified:
branches/eglibc-2_8/libc/ChangeLog.eglibc
branches/eglibc-2_8/libc/elf/ldd.bash.in
Modified: branches/eglibc-2_8/libc/ChangeLog.eglibc
==============================================================================
--- branches/eglibc-2_8/libc/ChangeLog.eglibc (original)
+++ branches/eglibc-2_8/libc/ChangeLog.eglibc Mon Sep 8 10:37:03 2008
@@ -1,3 +1,8 @@
+2008-09-08 Pete Eberlein <eberlein@xxxxxxxxxx>
+
+ * elf/ldd.bash.in: Make pipefail check more robust when using
+ non-bash shells.
+
2008-06-17 Joseph Myers <joseph@xxxxxxxxxxxxxxxx>
* stdlib/tst-setcontext.c: Set back_in_main before exit if
Modified: branches/eglibc-2_8/libc/elf/ldd.bash.in
==============================================================================
--- branches/eglibc-2_8/libc/elf/ldd.bash.in (original)
+++ branches/eglibc-2_8/libc/elf/ldd.bash.in Mon Sep 8 10:37:03 2008
@@ -110,7 +110,7 @@
# 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 x=`set -o` && test "$x" != "${x#*pipefail}" && set -o pipefail ; then
try_trace() {
eval $add_env '"$@"' | cat
}