[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gpa-dev
Subject:    [issue121] Question about empty lists
From:       David Faure <aegypten-issues () intevation ! de>
Date:       2004-03-23 16:32:34
Message-ID: 200403231732.22583.dfaure () klaralvdalens-datakonsult ! se
[Download RAW message or body]


New submission from David Faure <dfaure@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@intevation.de>
<https://intevation.de/roundup/aegypten/issue121>
______________________________________________________

_______________________________________________
Gpa-dev mailing list
Gpa-dev@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gpa-dev

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic