Minor bug in 4.58.9: check_mail:123 "echo -n" is not portable
Julian Field
MailScanner at ecs.soton.ac.uk
Wed Feb 7 12:37:08 CET 2007
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
My best attempt to solve this one is this:
printf 'Starting MailScanner...' 2>/dev/null || echo -n 'Starting
MailScanner...'
Then you just have to have one or the other.
Or even this?
printf 'Starting MailScanner...' 2>/dev/null || echo -n 'Starting
MailScanner...' 2>/dev/null || echo 'Starting MailScanner...'
Thoughts?
René Berber wrote:
> Hi,
>
> As the subject says, the new version has a check_mail with line 123:
>
> echo -n 'Starting MailScanner...'
>
> 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.
>
> Alternatives are, in order of preference:
>
> 1. printf 'Starting MailScanner...'
>
> 2. echo 'Starting MailScanner...\c'
>
> The first one is probably portable, the second is what we use in Solaris and
> probably doesn't work anywhere else.
>
Jules
- --
Julian Field MEng CITP
www.MailScanner.info
Buy the MailScanner book at www.MailScanner.info/store
Need help customising MailScanner?
Contact me!
Need help fixing or optimising your systems?
Contact me!
Need help getting you started solving new requirements from your boss?
Contact me!
PGP footprint: EE81 D763 3DB0 0BFD E1DC 7222 11F6 5947 1415 B654
-----BEGIN PGP SIGNATURE-----
Version: PGP Desktop 9.5.3 (Build 5003)
Comment: (pgp-secured)
Charset: ISO-8859-1
wj8DBQFFybqUEfZZRxQVtlQRAieRAKDZltU+h0MJSl0lIUkuf5aaI9K1SACg51/G
9Ltv5KyCxjUPkbevnAarSBg=
=cL44
-----END PGP SIGNATURE-----
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
For all your IT requirements visit www.transtec.co.uk
More information about the MailScanner
mailing list