[issue121] Question about empty lists

David Faure <[email protected]>
Newsgroups gmane.comp.encryption.gpg.gpa.devel
Message-ID <[email protected]>
New submission from David Faure <[email protected]>:

A string list (like the LDAP URL list) is escaped as "item1,"item2
But how should an empty list look like?
A single " looks like an empty item, so an empty list would be nothing, right?

However this doesn't seem to work:
echo 'LDAP Server:0:' | gpgconf --change-options dirmngr
gpgconf: argument required for option LDAP Server
gpgconf: fatal error (exit status 1).

Of course 'LDAP Server:16:' works, but this means "reset to default", which
is a different action from "set to the empty list". Or should I add some code that
checks "if the value being set is the same as the default value then reset to default"?
This would seem a bit broken, in some cases (e.g. setting the LDAP timeout to 100
voluntarily means that if dirmngr's default changes, the user still wants 100).

----------
messages: 563
nosy: dfaure
status: unread
title: Question about empty lists
______________________________________________________
Aegypten issue tracker <[email protected]>
<https://intevation.de/roundup/aegypten/issue121>
______________________________________________________
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.