All pastes #202506 Raw Edit

Mine

public text v1 · immutable
#202506 ·published 2006-10-14 15:33 UTC
rendered paste body
chaza@Mars ~/localepurge $ diff -u localepurge.list localepurge.stderr
--- localepurge.list    2006-10-07 14:29:11.694154191 +0100
+++ localepurge.stderr  2006-10-14 12:49:05.527563051 +0100
@@ -9,7 +9,7 @@
 MANPAGEDIRS="/usr/share/man /usr/man /usr/local/share/man /usr/kde/?.?/share/man /usr/kde/?.?/man /opt/sun-jdk-*/man /opt/sun-jre-bin-*/man"
 LOCALELIST="/var/cache/localepurge/localelist"
 CONFIGFILE="/etc/locale.nopurge"
-VERSION="0.5.2"
+VERSION="0.5.3"

 LOCALETOTAL=0
 MANTOTAL=0
@@ -25,7 +25,7 @@
 ACTION="/bin/rm -vf"

 eerror () {
-    echo -e " ${BAD}*${NORMAL} $*" >> /dev/stderr
+    echo -e " ${BAD}*${NORMAL} $*" >&2
 }

 ewarn () {
@@ -56,7 +56,7 @@
     einfo "Usage: `basename $0` [options]"
     echo
     etab "${BOLD}-debug (-d)    ${NORMAL}  : debug mode."
-    etab "${BOLD}-help (-h)    ${NORMAL}  : show this help."
+    etab "${BOLD}-help (-h)    ${NORMAL}  : show this help."
     etab "${BOLD}-list (-l)    ${NORMAL}  : list directories to be cleared"
     etab "${BOLD}-nocolor (-nc) ${NORMAL}  : no color mode."
     etab "${BOLD}-pretend (-p)  ${NORMAL}  : pretend mode."
@@ -123,7 +123,7 @@
     if [ "${LIST}" = "enabled" ] && [ "${PRETEND}" = "enabled" ]; then
         eerror "Cannot have list and pretend mode enabled at the same time"
        eerror "Please enable one at a time"
-       echo >> /dev/stderr
+       echo >&2
        eerror "For more information, see `basename $0` -help"
     fi