[issue121] Question about empty lists

David Faure aegypten-issues at intevation.de
Tue Mar 23 17:32:34 CET 2004


New submission from David Faure <dfaure at klaralvdalens-datakonsult.se>:

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 <aegypten-issues at intevation.de>
<https://intevation.de/roundup/aegypten/issue121>
______________________________________________________



More information about the Gpa-dev mailing list