Closed martinhoyer closed 6 years ago
I'm not sure this is a valid feature because you can create an XPath expression to match by value. @lutter Any thoughts?
If it is, would you mind adding a test for this functionality?
Yes, this is the same as adding a [. = 'value']
filter to the end of the path expression, e.g., match /files/etc/hosts/*/ipaddr[. = '127.0.0.1']
. The existing feature in match
is more versatile since you can e.g. do stuff like match /files/etc/hosts/*[ipaddr='127.0.0.1']/canonical
to find the canonical name of the host with ipaddr 127.0.0.1
I see, didn't know that. Thanks @lutter!
augtool has this functionality