[Debconf-devel] Bug#636219: How can we quote # in a value passed to debconf-set-selections?

Steven Chamberlain steven at pyro.eu.org
Sun Mar 25 17:12:29 UTC 2012


Hi,

Since debconf-set/get-selections have no mechanism for quoting,
introducing one could break applications that already expect to set
values with chars such as:  ' " \

So instead, perhaps change the behaviour of debconf-get-selections to
treat # to denote a comment, only if it appears on the start of a line.

According to the debconf-set-selections(1) man page, that was the
expected behaviour anyway:

> Lines beginning with a # character are
> comments. Blank lines are ignored. All other lines set the value...

So I propose the attached patch.

Thanks!
Regards,
-- 
Steven Chamberlain
steven at pyro.eu.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: allow-hash-character-in-names-values.patch
Type: text/x-patch
Size: 432 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/debconf-devel/attachments/20120325/35694b07/attachment.bin>


More information about the Debconf-devel mailing list