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

svn path=/main/branches/2.1.2/; revision=9857

bin/ebuild.sh

index cc42e8581cfaad0624c14e630e096a8bd7b4308a..98fd314017415b1cd04f664d6d9698ae1fe905b7 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