Hello,<br><br>In shellvars.aug, the var_action entry manages "unset" and bare "export" entries, such as:<br><br>unset SOMEVAR<br>export SOMEVAR<br><br>It currently does not support multiple variables per entry, and maps them as:<br>
<br>{ "@unset" = "SOMEVAR" }<br>{ "@export" = "SOMEVAR" }<br><br>We need to support multiple variables for this lens, and there are several solutions to implement it:<br><br>* One possibility would be to map them as an array using seq:<br>
    { "@unset" { "1" = "SOMEVAR" } { "2" = "OTHERVAR" } }<br>While this is the most obvious and cleanest option, it breaks compatibility with the current schema, which we want to avoid if possible;<br>
* Another possibility is to simply accept spaces in values, and map them as:<br>    { "@unset" = "SOMEVAR OTHERVAR" }<br>I find this quite ugly and not practical as the variables are not properly parsed by the lens;<br>
* David also suggested the possibility of starting an array only at the second variable, like:<br>    { "@unset" = "SOMEVAR" { "1" = "OTHERVAR" } }<br>It combines the advantages of not breaking the current scheme, while providing an array. However, it is the only lens that would behave this way, and it makes it a bit clumsy I find that all variables are not treated the same way in the tree.<br>
<br><br>What would you choose? Would you consider it problematic to break compatibility in order to support this functionality?<br><br clear="all"><br>-- <br>Raphaël Pinson<br>Administrateur Systèmes & Réseaux<br>
Camptocamp France<br>
Savoie Technolac<br>
BP 352<br>
48, avenue du Lac du Bourget<br>
73372 Le Bourget du Lac, Cedex<br>
<a href="http://www.camptocamp.com" target="_blank">www.camptocamp.com</a><br>
<br>