[Lunar-commits]
CVS: theedge/var/lib/lunar/functions messages.lunar, 1.22, 1.23
Auke Kok
sofar at lunar-linux.org
Mon Apr 18 11:48:25 UTC 2005
Update of /var/cvs/lunar/theedge/var/lib/lunar/functions
In directory espresso.foo-projects.org:/home/sofar/active/theedge/var/lib/lunar/functions
Modified Files:
messages.lunar
Log Message:
don't use /dev/stderr, but rather /proc/self/fd/2
Index: messages.lunar
===================================================================
RCS file: /var/cvs/lunar/theedge/var/lib/lunar/functions/messages.lunar,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -d -r1.22 -r1.23
--- messages.lunar 1 Apr 2005 10:17:23 -0000 1.22
+++ messages.lunar 18 Apr 2005 11:48:22 -0000 1.23
@@ -54,18 +54,18 @@
if [ -n "$LUNAR_DEBUG" ] ; then
if [ "$LUNAR_DEBUG" -ge "4" ] ; then
PLUSSES="+++++++++++++++++++++++++*"
- echo "${PLUSSES:0:${#FUNCNAME[@]}} $(basename $0)[$$]: $(basename ${BASH_SOURCE[1]}):${BASH_LINENO[1]}: ${FUNCNAME[1]} ($@)" > /dev/stderr
+ echo "${PLUSSES:0:${#FUNCNAME[@]}} $(basename $0)[$$]: $(basename ${BASH_SOURCE[1]}):${BASH_LINENO[1]}: ${FUNCNAME[1]} ($@)" >&2
unset PLUSSES
elif [ "$LUNAR_DEBUG" -ge "3" ] ; then
PLUSSES="+++++++++++++++++++++++++*"
- echo "${PLUSSES:0:${#FUNCNAME[@]}} $(basename ${BASH_SOURCE[1]}):${BASH_LINENO[1]}: ${FUNCNAME[1]} ($@)" > /dev/stderr
+ echo "${PLUSSES:0:${#FUNCNAME[@]}} $(basename ${BASH_SOURCE[1]}):${BASH_LINENO[1]}: ${FUNCNAME[1]} ($@)" >&2
unset PLUSSES
elif [ "$LUNAR_DEBUG" -ge "2" ] ; then
PLUSSES="+++++++++++++++++++++++++*"
- echo "${PLUSSES:0:${#FUNCNAME[@]}} ${FUNCNAME[1]} ($@)" > /dev/stderr
+ echo "${PLUSSES:0:${#FUNCNAME[@]}} ${FUNCNAME[1]} ($@)" >&2
unset PLUSSES
else
- echo "++ $@" > /dev/stderr
+ echo "++ $@" >&2
fi
if [ "$LUNAR_DEBUG" -ge "5" ] ; then
echo "++ $@" >> $TMPDIR/lp_debuglog.$$
@@ -76,7 +76,7 @@
fi
set | grep '^[A-Z]' | sed 's/^/VAR /' > $TMPDIR/l_debug_var.$$
diff -U0 $TMPDIR/l_debug_var.$$.old $TMPDIR/l_debug_var.$$ | \
- grep -v "^@@" | grep "VAR" | tee -a $TMPDIR/lp_debuglog.$$ > /dev/stderr
+ grep -v "^@@" | grep "VAR" | tee -a $TMPDIR/lp_debuglog.$$ >&2
fi
fi
}
More information about the Lunar-commits
mailing list