Talk:Update a configuration file: Difference between revisions

m
→‎Task spec issues: added a what-if case query.
(→‎Task spec issues: directive file.)
m (→‎Task spec issues: added a what-if case query.)
Line 21:
 
:: The phrase &nbsp; ''If a configuration option does not exist with the file'' &nbsp; is a bit vague. &nbsp; What does &nbsp; ''<big><big>a</big></big> &nbsp; configuration option'' &nbsp; mean? &nbsp; One (or any) of the aforementioned options mentioned earlier in the Rosetta Code tasks? &nbsp; Explicitly stating which options would be clearer and unambiguous. -- [[User:Gerard Schildberger|Gerard Schildberger]] ([[User talk:Gerard Schildberger|talk]]) 03:00, 12 May 2015 (UTC)
 
:: What about the case of:
<pre>
; prunes 10
peaches 20
apples none
prunes 48
</pre>
:: and let's say that the PRUNES option setting to be "un-commented" &nbsp; (as per a task requirement). &nbsp; Then, the 2nd PRUNES option setting would be deleted as per a stated rule &nbsp; (as there is now a duplicate PRUNES option). &nbsp; Is this what the author had in mind? -- to invalidate an existing option setting when "un-commenting" an option setting? &nbsp; It almost looks like the task's requirements might possibly require a two-pass solution for the above scenario. -- [[User:Gerard Schildberger|Gerard Schildberger]] ([[User talk:Gerard Schildberger|talk]]) 07:02, 12 May 2015 (UTC)
 
:: If the author of the task wanted to have duplicate entries (as well as spurious duplicate semicolons) removed, there should be some examples of each in the input file (plus the addition of same wouldn't change the output file, even at this late date). -- [[User:Gerard Schildberger|Gerard Schildberger]] ([[User talk:Gerard Schildberger|talk]]) 03:00, 12 May 2015 (UTC)