Minor bug in 4.58.9: check_mail:123 "echo -n" is not portable

Glenn Steen glenn.steen at gmail.com
Wed Feb 7 13:22:37 CET 2007


On 07/02/07, Glenn Steen <glenn.steen at gmail.com> wrote:
(snip)
> > printf 'Starting MailScanner...' 2>/dev/null || echo -n 'Starting
> > MailScanner...' 2>/dev/null || echo 'Starting MailScanner...'
>
> This is useless, since you will never fail in the first echo, you will
> always produce
> "Starting MailScanner...
> "
"Think before you type..." :-)
You would always behave as in the first ... potentially producing "-n
Starting....", the last echo would only come into play if echo as such
borked out... And then that would likely not be your primary
problem:-D... You'd probably have far more basic things breaking right
left and center then. So it'd basically be useless anyway;).

-- 
-- Glenn
email: glenn < dot > steen < at > gmail < dot > com
work: glenn < dot > steen < at > ap1 < dot > se


More information about the MailScanner mailing list