Changelog for HylaFAX 4.2.5
+* change notify to not rely on echo -e (BUG 724) (11 Jan 2005)
* make sure probemodem removes lock files (BUG 691) (9 Jan 2005)
* portability cleanup to MemoryDecoder.c++ (BUG 224) (9 Jan 2005)
* include crypt.h where necessary (BUG 722) (9 Jan 2005)
if [ -z "$1" ] ; then # 0 string len
echo "<no reason recorded>"
else
- # use -e in echo to interpret escape characters in the line
- echo -e $1
+ # we need to change the '\n' in the strings to real newlines
+ echo "$1" | sed -e 's/\\n/\n/g'
fi
}
printf "\nProcessing time was %s.\n" "$JTIME"
fi
if [ -n "$faxstatus" -a "$RETURNTRANSCRIPT" = "yes" ] ; then
- # use -e in echo to interpret escape characters in faxstatus
- echo -e " Additional information:\n " $faxstatus
+ echo " Additional information:"
+ printStatus " $faxstatus"
returnTranscript
fi
if [ -n "$RETURNFILETYPE" ] ; then
elif [ "$WHY" = "format_failed" ] ; then
putHeaders "$jobtag to $number failed"
echo " was not sent because document conversion"
- echo -e "to facsimile failed. The output from the converter program was:\n"
- # use -e in echo to interpret escape characters in faxstatus
- echo -e $faxstatus "\n"
+ echo "to facsimile failed. The output from the converter program was:"
+ echo ""
+ printStatus "$faxstatus"
+ echo ""
echo "Check any PostScript documents for non-standard fonts and invalid constructs"
returnToSender
elif [ "$WHY" = "no_formatter" ] ; then
putHeaders "Notice about $jobtag"
echo " had something happen to it."
echo "Unfortunately, the notification script was invoked with an unknown reason"
- echo -e "so the rest of this message is for debugging:\n"
+ echo "so the rest of this message is for debugging:"
+ echo ""
echo "why: $WHY"
echo "jobTime: $JTIME"
echo "nextTry: $NEXT"