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

 
 

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

Submitted by:  Hauser Marcel <mhauser>
Submitted on:  Tue 03 Jan 2006 07:12:47 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned to: Eskild Hustvedt <zero_dogg>
Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

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>
Project AdministratorIn charge of this item.
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>
Project AdministratorIn charge of this item.
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 File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follow 4 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Wed 04 Jan 2006 03:29:13 PM UTCzero_doggStatusConfirmed=>Fixed
  Open/ClosedOpen=>Closed
Tue 03 Jan 2006 07:24:36 PM UTCzero_doggStatusNone=>Confirmed
  Assigned toNone=>zero_dogg

Back to the top


Powered by Savane 3.1-cleanup1