xzless report an error

Bug #1248044 reported by Jean-Max Reymond
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
xz-utils (Debian)
Fix Released
Unknown
xz-utils (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

when using the command xzless, I have always this line

/usr/bin/xzless: line 49: test: 458 (GNU regular expressions): integer expression expected

Related branches

description: updated
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. It seems that your bug report is not filed about a specific source package though, rather it is just filed against Ubuntu in general. It is important that bug reports be filed about source packages so that people interested in the package can find the bugs about it. You can find some hints about determining what package your bug might be about at https://wiki.ubuntu.com/Bugs/FindRightPackage. You might also ask for help in the #ubuntu-bugs irc channel on Freenode.

To change the source package that this bug is filed about visit https://bugs.launchpad.net/ubuntu/+bug/1248044/+editstatus and add the package name in the text box next to the word Package.

[This is an automated message. I apologize if it reached you inappropriately; please just reply to this message indicating so.]

tags: added: bot-comment
affects: ubuntu → xz-utils (Ubuntu)
Revision history for this message
Jean-Max Reymond (jmreymond-free) wrote :

The cause is the verbose output of less -V.
So, I fixed with

diff /usr/bin/xzless /tmp/xzless
49c49
< if test "$(less -V | { read ver && echo ${ver#less }; })" -ge 429; then
---
> if test "$(less -V | awk '{if (NR ==1) print $2}')" -ge 429; then

Revision history for this message
Hans Joachim Desserud (hjd) wrote :

Thanks for taking your time to report this issue and help making Ubuntu better.

I can confirm the error message still shows up on the latest version of xzless on Ubuntu Trusty.

I found that the same issue has been reported to Debian, along with a patch which was forwarded upstream. It looks like the issue has been fixed in xz, but the newer version has just not been packaged yet.

Changed in xz-utils (Ubuntu):
status: New → Confirmed
tags: added: patch raring saucy trusty
Changed in xz-utils (Debian):
status: Unknown → Confirmed
Revision history for this message
Dave Gilbert (ubuntu-treblig) wrote :

Triaged: Obvious cause found
High: Makes the program fail completely

Changed in xz-utils (Ubuntu):
importance: Undecided → High
status: Confirmed → Triaged
Changed in xz-utils (Ubuntu):
importance: High → Medium
Revision history for this message
Martin Pitt (pitti) wrote :
Martin Pitt (pitti)
Changed in xz-utils (Ubuntu):
status: Triaged → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package xz-utils - 5.1.1alpha+20120614-2ubuntu2

---------------
xz-utils (5.1.1alpha+20120614-2ubuntu2) trusty; urgency=low

  * debian/patches/error-parsing-less.patch. LP: #1248044
    - parse correctly recent versions of less output
 -- <email address hidden> (Javier P.L.) Sun, 09 Feb 2014 01:21:14 -0600

Changed in xz-utils (Ubuntu):
status: Fix Committed → Fix Released
Changed in xz-utils (Debian):
status: Confirmed → 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.