[augeas-devel] [Augeas] #44: path expressions: 'and' and 'or' need to coerce types

Augeas trac at fedorahosted.org
Wed Mar 4 00:37:45 UTC 2009


#44: path expressions: 'and' and 'or' need to coerce types
--------------------+-------------------------------------------------------
 Reporter:  lutter  |       Owner:  lutter
     Type:  defect  |      Status:  new   
 Priority:  major   |   Milestone:  next  
Component:  Augeas  |     Version:  0.4.1 
 Keywords:          |  
--------------------+-------------------------------------------------------
 This should work:


 {{{
 match "/files[/files/etc/hosts/*[ipaddr = '127.0.0.1'] or
 /files/etc/aliases/*[name = 'root'] ]"
 }}}

 but produces a type error since the operands of the 'or' have type
 nodeset, which could be automatically coerced to boolean, but isn't.

-- 
Ticket URL: <https://fedorahosted.org/augeas/ticket/44>
Augeas <http://augeas.net/>
a configuration API




More information about the augeas-devel mailing list