{ "subject": "Re: JSON-RPC password", "content": { "format": "html", "body": "<div class=\"post\"><div class=\"quoteheader\"><a href=\"https://bitcointalk.org/index.php?topic=461.msg4709#msg4709\">Quote from: gavinandresen on July 21, 2010, 12:11:10 PM</a></div><div class=\"quote\">I just did a quick survey of 20 .conf files in /etc on my debian system, and found:<br/>&nbsp;1 file used \"key value\"<br/>&nbsp;5 used \"key=value\"&nbsp; <br/></div>Thanks for that survey!<br/><br/>I find \"key value\" a little unnatural.&nbsp; There ought to be a more definite separator between key and value that suggests assignment.&nbsp; The space people may just be getting lazy using their language's split function.<br/>key=some full sentence with spaces in it.&nbsp; # seems more clear<br/>key some full sentence with spaces in it.&nbsp; # than this<br/><br/>Allright then, lets go with self-parsed mapConfig, syntax:<br/># comment<br/>key=value<br/><br/>file extension .conf.&nbsp; What's the filename, is it ~/.bitcoin/settings.conf or ~/.bitcoin/bitcoin.conf or what?&nbsp; &nbsp;<br/><br/>I think we better strip whitespace at the beginning and end of the key and the value.<br/># user who likes column formatted <br/>k&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = value<br/>key&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= value<br/>longerkey =&nbsp; &nbsp;this sentence would be this&nbsp; &nbsp; # \"this sentence would be this\"<br/>&nbsp; &nbsp; &nbsp; &nbsp; key = value&nbsp; &nbsp;# guess this is ok too<br/>&nbsp; nextkey = value<br/>&nbsp; &nbsp; &nbsp; right = justified<br/><br/>The normal syntax should be \"key=value\", but you can't blame people for the occasional \"key = value\".</div>" }, "source": { "name": "Bitcoin Forum", "url": "https://bitcointalk.org/index.php?topic=461.msg4758#msg4758" }, "date": "2010-07-21T16:07:57Z" }
Inscription number 18,209,376
Genesis block 799,364
File type json
File size 2.26 KB
Creation date Mar 14,2024 6:1 pm