Your message dated Thu, 7 Dec 2006 14:55:18 +0000
with message-id <[EMAIL PROTECTED]>
and subject line Bug#401481: dash: builtin echo does not behave like /bin/echo
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--- Begin Message ---
Package: dash
Version: 0.5.3-3
Severity: normal

The builtin echo command always interprets backslash escape sequences,
whereas /bin/echo only interprets them when given the "-e" option.

This causes some problems for some scripts,
e.g. /etc/cron.daily/exim-base when it tries to use echo to send mail to
root, as it calls "echo -e" to include newlines.  However, since dash's
builtin echo doesn't understand the "-e" option and instead outputs it,
it causes messed up mails to be sent.

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'stable'), (101, 'experimental')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/dash
Kernel: Linux 2.6.16.9
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages dash depends on:
ii  libc6                        2.3.6.ds1-7 GNU C Library: Shared libraries

dash recommends no packages.

-- debconf information:
  dash/sh: false



--- End Message ---
--- Begin Message ---
Hi Hubert,

On Sun, Dec 03, 2006 at 06:11:10PM -0500, Hubert Chan wrote:
> The builtin echo command always interprets backslash escape sequences,
> whereas /bin/echo only interprets them when given the "-e" option.

correct, dash follows the standard here, /bin/echo does not

 http://www.opengroup.org/onlinepubs/009695399/utilities/echo.html

> This causes some problems for some scripts,
> e.g. /etc/cron.daily/exim-base when it tries to use echo to send mail to
> root, as it calls "echo -e" to include newlines.  However, since dash's
> builtin echo doesn't understand the "-e" option and instead outputs it,
> it causes messed up mails to be sent.

To avoid such problems with different echo implementations the printf(1)
program or builtin should be used instead.

HTH, Gerrit.

--- End Message ---

Reply via email to