Bug#395448: exim4-base: cron script uses "echo -e", which is not recognized by dash

Andreas Metzler ametzler at downhill.at.eu.org
Fri Oct 27 18:55:49 CEST 2006


On 2006-10-27 Marc Haber <mh+debian-packages at zugschlus.de> wrote:
> tags #395448 confirmed
> thanks

> On Thu, Oct 26, 2006 at 08:05:25PM -0500, Ming Hua wrote:
>> In the /etc/cron.daily/exim4-base script, it uses
>>     echo -e "Subject: exim paniclog...\nTo: root\n..."
>> to send a mail to root about non-empty paniclog.

>> However this seems to only have desired result in bash.  After I set my
>> /bin/sh to dash, I am getting mails about paniclog with empty subject,
>> but "-e Subject: exim paniclog on ..." in the mail body.  Testing with
>> dash confirms that dash doesn't recognize the "-e" option, and just echo
>> it literally.

> Is it acceptable for you to explicitly call /bin/echo instead of the
> echo builtin?

The canonical way to fix issues like this one is to simply use
printf(1) instead of echo.
cu andreas
-- 
The 'Galactic Cleaning' policy undertaken by Emperor Zhark is a personal
vision of the emperor's, and its inclusion in this work does not constitute
tacit approval by the author or the publisher for any such projects,
howsoever undertaken.                                (c) Jasper Ffforde




More information about the Pkg-exim4-maintainers mailing list