Re: [Nagios-devel] Line continuations not working as expected
Posted: Thu Jan 24, 2008 4:19 am
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: [email protected]
Web: www.nagios.org
This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]
> 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: [email protected]
Web: www.nagios.org
This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]