-
Notifications
You must be signed in to change notification settings - Fork 123
rename: newly created key not renamed #485
Comments
thats the expected behaviour using |
It also does not work with Another bug is that you cannot create new keys when the configuration file does not exist (empty keyset?). The only thing that works nicely is that on the user side (with This should be reflected in the docu. |
Oh, now i get what you meant, sorry. |
No, lets rather concentrate on real bugs. Lets only update the docu. Where a behavioural change might be useful is to have ranges, e.g. |
To clarify: I think we also need a two-way renaming for machinekit. So every key the users get should be lowercase, everything passed to the storage uppercase (and vice-verca). It is a different feature, because it loses all case-preserving for the storage. Maybe we can cleverly have two different features that can be combined in every way: One feature that is about how the user sees the keys, the other feature how the storage will get the key? Then the user can combine (or even leave out) the features as desired. |
As discussed we need to handle both sides: get-side which produces Elektra (KeySet) and the set-side which writes to the configuration file. Thus we need two different "tolower" and "toupper" to configure each possibility. I would suggest:
Where unchanged is the default. |title| does not need to be implemented now, it is only for the sake of an argument why we should use an @Strahlex is this ok for you or do you want a convenience/backward compatibility options |
@markus2330 so |
Yes, there are plenty of other ways how to rename. But I am not sure what you are proposing here. Please elaborate or give an example what this new option should do. (But in a new issue please.) I think the lower|upper|unchanged are the most common ones. |
Works now flawless as expected:
|
@tom-wa When I mount using
rename tolower=0
, e.g.kdb mount .../machinekit.ini system/machinekit/cnc ini array= type rename tolower=0
then new keys are written out lowercase and are not converted to uppercase.The text was updated successfully, but these errors were encountered: