Package: xml-twig-tools Version: 1:3.39-1 Severity: normal Dear Maintainer,
when using xml_grep with input directly from stdin its output misses the closing </file> tag. This also gives a warning about uninitialzed variable. $ echo '<xml><test></test></xml>' | xml_grep xml <?xml version="1.0" ?> <xml_grep version="0.9" date="Sat Oct 20 14:47:53 2012"> Use of uninitialized value $current_file in concatenation (.) or string at /usr/bin/xml_grep line 284. <file filename=""><xml> <test></test> </xml> </xml_grep> When using '-' as input filename for stdin it works: $ echo '<xml><test></test></xml>' | xml_grep xml - <?xml version="1.0" ?> <xml_grep version="0.9" date="Sat Oct 20 14:47:59 2012"> <file filename="-"><xml> <test></test> </xml> </file> </xml_grep> I think both versions to use the command should output the same xml. When no file is explicitely given on the command line stdin should be implicitely assumed, as it is currently. But the XML should be also valid then. -- System Information: Debian Release: wheezy/sid APT prefers unstable APT policy: (500, 'unstable'), (1, 'experimental') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 3.2.0-4-amd64 (SMP w/4 CPU cores) Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages xml-twig-tools depends on: ii libxml-parser-perl 2.41-1+b1 ii libxml-twig-perl 1:3.39-1 ii perl 5.14.2-14 xml-twig-tools recommends no packages. xml-twig-tools suggests no packages. -- no debconf information -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org