Minor bug in 4.58.9: check_mail:123 "echo -n" is not portable
Res
res at ausics.net
Wed Feb 7 02:50:29 CET 2007
Jules,
bin/check_mailscanner Line 117
echo -n
to avoid the issue with Solaris can you please replace the
echo -n _with_ printf on line 117
Cheers
On Wed, 7 Feb 2007, Res wrote:
> On Wed, 7 Feb 2007, Res wrote:
>
>>> the problem is that "echo -n" does not work everywhere, specifically it
>>> doesn't
>>> work in Solaris 9, 8, ... with the stock echo, or the built-in Bourne
>>> shell echo.
>
>> This works fine on Linux, unfortunately I can't test Solaris
>
> looks around.....
>
> SunOS5.9
> The echo utility writes its arguments, separated by BLANKs
> and terminated by a NEWLINE, to the standard output. If
> there are no arguments, only the NEWLINE character will be
> written.
>
> We use the -n to avoid the newline output so we can have the result on the
> same line, so if solaris we'd need use \c to avoid it it seems.
> \c Print line without new-line. All characters fol-
> lowing the \c in the argument are ignored.
>
>
>
--
Cheers
Res
"We can be Heroes, just for one day" - Davey (Jones) Bowie
More information about the MailScanner
mailing list