bugCommon Configuration Parser - Bugs: bug #15364, ccp parses ":" and ...

 
 

bug #15364: ccp parses ":" and "#" comments wrongly

Submitter:  Hauser Marcel <mhauser>
Submitted:  Tue 03 Jan 2006 07:12:47 PM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  Fixed
Privacy:  Public Assigned to:  zero_dogg
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Wed 04 Jan 2006 08:15:51 PM UTC, comment #4: 

looks good so far :-)

Thanks

Cheers

Marcel

Anonymous
Wed 04 Jan 2006 03:29:13 PM UTC, comment #3: 

Fixed in CVS and the fix will be in the 0.2 release.
Please test the CVS;
export CVS_RSH=\\\"ssh\\\"
cvs -z3 -d:pserver:anonymous@cvs.savannah.nongnu.org:/sources/ccp co ccp

Thanks :)

Eskild Hustvedt <zero_dogg>
Group administrator
Tue 03 Jan 2006 07:28:18 PM UTC, comment #2: 

You're welcome..... thanks for doing ccp !

Cheers

Marcel

Hauser Marcel <mhauser>
Tue 03 Jan 2006 07:24:36 PM UTC, comment #1: 

You're right!
I'll look at this for ccp 0.2
Thanks ! :)

Eskild Hustvedt <zero_dogg>
Group administrator
Tue 03 Jan 2006 07:12:47 PM UTC, original submission:  

old file (test.old):
---------------------------------------
webpage = 'http://dcc.test.example.com'

some_flag = off # *SOME COMMENTS*

some_test_flag = off # Comment

some_test = on # *Comment*



new file (test.new): (exactly the same)
----------------------------------------
webpage = 'http://dcc.test.example.com'

some_flag = off # *SOME COMMENTS*

some_test_flag = off # Comment

some_test = on # *Comment*


command line used:
-------------------
ccp --oldfile test.old --newfile test.new --outputfile test.out --veryverbose

Result of "cat test.out":
--------------------------
webpage = 'http

some_flag = off

some_test_flag = off

some_test = on

Final Words: :-)
----------------
as you can see.... anything after the ":" char got removed "accidently"

comments get striped as well

I really like your idea of ccp !! thanks for the good work so far... as ccp can really save a lot of time, while upgrading config files !!

Cheers

Marcel

Hauser Marcel <mhauser>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

Only logged-in users can vote.

 

Follow 4 latest changes.

Date Changed by Updated Field Previous Value => Replaced by
2006-01-04 zero_dogg StatusConfirmed Fixed
    Open/ClosedOpen Closed
2006-01-03 zero_dogg StatusNone Confirmed
    Assigned toNone zero_dogg

Back to the top

Powered by Savane 3.13-caa5.
Corresponding source code