Page 1 of 1

Re: [Nagios-devel] Re: Bug: NSCA 2.4 on OS X 10.3

Posted: Wed Jan 28, 2004 5:05 am
by Guest
On Tue, 2004-01-27 at 22:59 -0800, Noah Leaman wrote:
> Yes. Look at that. It appears /bin/echo on OSX doesn't support -e ...

A note to developers. 'echo' is not portable. Use 'printf'

(See POSIX for a description of the rationale, but the long and short is
echo cannot be used portably.)

So the portable solution is like:

printf "%s %s\n", $var1, $var2

--
Karl DeBisschop
Director of Software Development, Infoplease/Pearson Education







This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]