[augeas-devel] match command in augtool and Java

Raphaël Pinson raphael.pinson at camptocamp.com
Thu Dec 31 16:58:51 UTC 2015


On Tue, Dec 29, 2015 at 6:36 PM, Diego <diego.ml at zoho.com> wrote:

> In data lunedì 28 dicembre 2015 18:00:35, Diego ha scritto:
> > while from an equivalent Java program, the strings in:
> > augeasHandle.match("/files/etc/network/interfaces/*")
>
> Hi,
>
> It looks like I was wrong. By checking my code I discovered I was actually
> calling the match method with two "/", like this:
> augeasHandle.match("/files/etc/network/interfaces//*")
>


That is what I expected indeed from reading your question. As in standard
XPath, // stands for any sublevel, which makes sense here.


Cheers,


Raphaël


Camptocamp France
Savoie Technolac
BP 352
48, avenue du Lac du Bourget
73372 Le Bourget du Lac, Cedex
www.camptocamp.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/augeas-devel/attachments/20151231/c113aa93/attachment.htm>


More information about the augeas-devel mailing list