Bug #217444 - Send debug-print() output to stderr so that it can't interfere
authorZac Medico <zmedico@gentoo.org>
Sat, 12 Apr 2008 19:52:48 +0000 (19:52 -0000)
committerZac Medico <zmedico@gentoo.org>
Sat, 12 Apr 2008 19:52:48 +0000 (19:52 -0000)
with command substitution. Thanks to Fabio Rossi <rossi.f@inwind.it> for
this patch.

svn path=/main/trunk/; revision=9856

bin/ebuild.sh

index 93dc1feea0cc06a403efb00867d154ebdbf8d6c5..b58962343140245d3a328389048de530b7c27cb7 100755 (executable)
@@ -1103,7 +1103,7 @@ debug-print() {
 
                # extra user-configurable targets
                if [ "$ECLASS_DEBUG_OUTPUT" == "on" ]; then
-                       echo "debug: $1"
+                       echo "debug: $1" >&2
                elif [ -n "$ECLASS_DEBUG_OUTPUT" ]; then
                        echo "debug: $1" >> $ECLASS_DEBUG_OUTPUT
                fi