Skip Menu |

This queue is for tickets about the Config-Std CPAN distribution.

Report information
The Basics
Id: 91847
Status: open
Priority: 0/
Queue: Config-Std

People
Owner: Nobody in particular
Requestors: markus.sonderegger [...] juliusbaer.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: def_gap => 0 not honored
Date: Fri, 3 Jan 2014 23:52:06 +0000
To: "bug-Config-Std [...] rt.cpan.org" <bug-Config-Std [...] rt.cpan.org>
From: "Sonderegger, Markus" <markus.sonderegger [...] juliusbaer.com>
Dear Supporter The config file before running test.pl is: [SECTION] Entry1: Value1 and after running the script with def_gap => 0 is [SECTION] Entry1: Value1 NewEntry: NewValue I expected that the empty line after Entry1: Value1 is not written out when setting def_gap => 0. But this is not the case on my system. Do I oversee anything? I am using perl -v This is perl, v5.10.1 built for sun4-solaris-thread-multi-64 (with 2 registered patches, see perl -V for more detail) Copyright 1987-2009, Larry Wall Binary build 1006 [291086] provided by ActiveState http://www.ActiveState.com Built Aug 24 2009 13:42:31 using the latest Config::Std module perl -MConfig::Std -e 'print "$Config::Std::VERSION\n"' 0.901 on uname -a SunOS tbcompriv1 5.10 Generic_142900-04 sun4u sparc SUNW,SPARC-Enterprise Many thanks for your help Regards Markus Show quoted text
______________________________________________________________ Dr. Markus Sonderegger, PTND Bank Julius Baer & Co. Ltd. P. O. Box, CH-8010 Zürich, Switzerland Telephone +41 (0)58 88 77281, Fax +41 (0)58 88 74851 Mobile +41 (0)79 698 09 79 www.juliusbaer.com<http://www.juliusbaer.com>
______________________________________________________________ *****JuliusBaer Disclaimer***** This e-mail is for the intended recipient only and may contain confidential or privileged information. If you have received this e-mail by mistake, please contact us immediately and completely delete it (and any attachments) and do not forward it or inform any other person of its contents. If you send us messages by e-mail, we take this as your authorisation to correspond with you by e-mail, however, we reserve the right not to execute orders and instructions transmitted by e-mail at any time and without further explanation. If you do not wish to receive any further e-mail correspondence please let us know. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, amended, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. Neither the Julius Baer Group nor the sender accept liability for any errors or omissions in the content of this message which arise as a result of its e-mail transmission. Please note that all e-mail communications to and from the Julius Baer Group may be monitored. This communication is for informational purposes only. It is not intended as an offer or solicitation for the purchase or sale of any financial instrument or as an official confirmation of any transaction.
Subject: Re: [rt.cpan.org #91847] def_gap => 0 not honored
Date: Fri, 3 Jan 2014 23:35:56 -0500
To: bug-Config-Std [...] rt.cpan.org
From: Bill Ricker <bill.n1vux [...] gmail.com>
On a quick reading, it appears def_gap=>0 should not remove existing whitespace, which we preserve at all costs; it only controls adding new whitespace around new entries. But the doc is ambiguous about between old and new entries, but i would tend to prefer your interpretation as least surprising and most useful. Was there a blank line (dual newlines) at the end of the file originally? If there is no blank line at the end of the input CFG file, i would agree this is an edge-case bug. If so, please attach your test script and (input) cfg file. Also, please indicate if this is urgent production critical. Happy New Year, Bill Ricker
Subject: RE: [rt.cpan.org #91847] def_gap => 0 not honored
Date: Sat, 4 Jan 2014 09:34:35 +0000
To: "bug-Config-Std [...] rt.cpan.org" <bug-Config-Std [...] rt.cpan.org>
From: "Sonderegger, Markus" <markus.sonderegger [...] juliusbaer.com>
Bill When shutting down my PC yesterday I realized that I have forgotten to attach my scripts to the mail. Please find them attached. u15679@tbcompriv1:~/monitoring$ cp test.cfg test.cfg.before u15679@tbcompriv1:~/monitoring$ test.pl u15679@tbcompriv1:~/monitoring$ cp test.cfg test.cfg.after I experimented with different settings but I could not manage to suppress the added newline before the line "NewEntry". The scripts attachad are stripped down to the bare minimum. I am preparing a monitoring script which monitors our MQ infrastructure and I plan to bring it into prod by mid-January. Your help is much appreciated. Thanks Markus Show quoted text
______________________________________________________________ Dr. Markus Sonderegger, PTND Bank Julius Baer & Co. Ltd. P. O. Box, CH-8010 Zürich, Switzerland Telephone +41 (0)58 88 77281, Fax +41 (0)58 88 74851 Mobile +41 (0)79 698 09 79 www.juliusbaer.com
______________________________________________________________
> -----Original Message----- > From: Bill Ricker via RT [mailto:bug-Config-Std@rt.cpan.org] > Sent: Samstag, 4. Januar 2014 05:36 > To: Sonderegger, Markus > Subject: Re: [rt.cpan.org #91847] def_gap => 0 not honored > > <URL: https://rt.cpan.org/Ticket/Display.html?id=91847 > > > On a quick reading, it appears def_gap=>0 should not remove existing > whitespace, which we preserve at all costs; it only controls adding new > whitespace around new entries. But the doc is ambiguous about between > old > and new entries, but i would tend to prefer your interpretation as least > surprising and most useful. > > Was there a blank line (dual newlines) at the end of the file originally? > > If there is no blank line at the end of the input CFG file, i would agree > this is an edge-case bug. > > If so, please attach your test script and (input) cfg file. > Also, please indicate if this is urgent production critical. > > Happy New Year, > > Bill Ricker
*****JuliusBaer Disclaimer***** This e-mail is for the intended recipient only and may contain confidential or privileged information. If you have received this e-mail by mistake, please contact us immediately and completely delete it (and any attachments) and do not forward it or inform any other person of its contents. If you send us messages by e-mail, we take this as your authorisation to correspond with you by e-mail, however, we reserve the right not to execute orders and instructions transmitted by e-mail at any time and without further explanation. If you do not wish to receive any further e-mail correspondence please let us know. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, amended, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. Neither the Julius Baer Group nor the sender accept liability for any errors or omissions in the content of this message which arise as a result of its e-mail transmission. Please note that all e-mail communications to and from the Julius Baer Group may be monitored. This communication is for informational purposes only. It is not intended as an offer or solicitation for the purchase or sale of any financial instrument or as an official confirmation of any transaction.
Download tests.tar
application/x-tar 6.5k

Message body not shown because it is not plain text.