No newline is appended to output of 'xpath' when no matches are found.

Bug #291119 reported by Adam Buchbinder
Affects Status Importance Assigned to Milestone
libxml-xpath-perl (Ubuntu)
Fix Released
Ansgar Burchardt

Bug Description

Binary package hint: libxml-xpath-perl

If an XPath expression doesn't match, the output doesn't end in a newline.

user@host:~$ xpath -e 'invalid' /etc/xml/w3c-dtd-xhtml.xml
No nodes found in /etc/xml/w3c-dtd-xhtml.xmluser@host:~$

The relevant line in /usr/bin/xpath is:

print STDERR "No nodes found in $filename" unless $quiet;

This is missing a newline at the end.

ProblemType: Bug
Architecture: i386
Date: Thu Oct 30 10:33:33 2008
DistroRelease: Ubuntu 8.04
Package: libxml-xpath-perl 1.13-6
PackageArchitecture: all
SourcePackage: libxml-xpath-perl
Uname: Linux 2.6.24-21-generic i686

Tags: apport-bug

Related branches

Revision history for this message
Adam Buchbinder (adam-buchbinder) wrote :
Revision history for this message
Adam Buchbinder (adam-buchbinder) wrote :
Revision history for this message
Adam Buchbinder (adam-buchbinder) wrote :

Note that this is not present in the upstream version; it's a fix for a Debian-specific feature (it prints the input filename in the output).

Revision history for this message
Ansgar Burchardt (aburch) wrote :

Will be fixed in Debian in libxml-xpath-perl/1.13-7.

Changed in libxml-xpath-perl (Ubuntu):
assignee: nobody → Ansgar Burchardt (ansgar-43-1)
status: New → Fix Committed
Revision history for this message
Ansgar Burchardt (aburch) wrote :

Setting importance to low as this is a cosmetic issue.

Changed in libxml-xpath-perl (Ubuntu):
importance: Undecided → Low
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package libxml-xpath-perl - 1.13-7

libxml-xpath-perl (1.13-7) unstable; urgency=low

  [ gregor herrmann ]
  * debian/control: Added: Vcs-Svn field (source stanza); Vcs-Browser
    field (source stanza); Homepage field (source stanza).
  * Set Maintainer to Debian Perl Group.
  * Use dist-based URL in debian/watch.
  * Remove changes in upstream Makefile.PL.
  * Split out remaining changes in upstream code into patches.
  * Add debian/README.source to document quilt usage, as required by
    Debian Policy since 3.8.0.
  * debian/control: Added: ${misc:Depends} to Depends: field.

  [ David Paleino ]
  * debian/control:
    - added myself to Uploaders
    - moved debhelper to Build-Depends, needed by clean target
    - added quilt to Build-Depends
  * debian/patches/:
    - 01-fix_comparison_bug_RT6363.patch added (Closes: #374672)

  [ Ansgar Burchardt ]
  * Refresh debian/rules for debhelper 7.
  * Convert debian/copyright to proposed machine-readable format.
  * Add missing newline to error message in patches/example.patch.
    (Closes: #515248) (LP: #291119)
  * debian/control: Mention module name in description.
  * Bump Standards-Version to 3.8.3.
  * debian/control: Remove duplicate fields Section, Priority from binary
    package stanza.
  * Add myself to Uploaders.
  * Add patch spelling.patch: Fix several spelling errors reported by lintian.
 -- Ubuntu Archive Auto-Sync <email address hidden> Mon, 18 Jan 2010 07:31:45 +0000

Changed in libxml-xpath-perl (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.