[BUG] Minor: config list adds a semi-colon to lists with a single item until set

Subject: [BUG] Minor: config list adds a semi-colon to lists with a single item until set

Date: Tue, 14 Nov 2017 16:17:56 -0500

To: notmuch@notmuchmail.org

Cc:

From: Ian


It seems on first config some settings are listed by "config list" with a semicolon suffix even if they are a single item. If they are subsequently set to another/the same single value they will then appear in config list WITHOUT the semicolon suffix. See output below. This is a very minor inconsistency but has affected one downstream script: [https://github.com/mturquette/ghar-email/issues/6.](https://github.com/mturquette/ghar-email/issues/6)

---------------------------------------

$ notmuch config list
...
search.exclude_tags=spam

;

<-- Semi-colon
...
$ notmuch config get search.exclude_tags
spam
$ notmuch config

set

search.exclude_tags spam
$ notmuch config get search.exclude_tags
spam
$ notmuch config list
...
search.exclude_tags=spam                        <-- No semi-colon

---------------------------------------
_______________________________________________
notmuch mailing list
notmuch@notmuchmail.org
https://notmuchmail.org/mailman/listinfo/notmuch

Thread: