Line continuations not working as expected
Ethan Galstad
nagios at nagios.org
Thu Jan 24 13:19:45 CET 2008
Matthew Richardson wrote:
> Sorry folks, I thought I had checked this before sending the message, but
> had done it wrong.
>
> The issue is the difference between Unix & Windows line ends in the config
> files.
>
> Using a "\" to end a line terminated with Unix line end, Nagios correctly
> treats the subsequent line as a continuation.
>
> Unfortunately if a Windows line end (CRLF) follows the "\", Nagios does not
> treat the line as a continuation.
>
> Because of the way I use a Windows PC, almost all of my Nagios config files
> have Windows not Unix line ends. Apart from this issue, I have had no
> problems.
>
> Would it be possible to adjust the code so as to allow continuations with
> either type of line end?
>
> Best wishes,
> Matthew
[snip]
Thanks for the note Matthew - a patch will be in CVS momentarily to
handle the CR/LF scenario...
Ethan Galstad
Nagios Developer
___
Email: nagios at nagios.org
Web: www.nagios.org
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
More information about the Developers
mailing list