Package: xz-utils Version: 5.1.1alpha+20120614-1 Severity: normal Dear Maintainer,
when looking with "xzless" at the contents of an file compressed with xz the following error message appears after quitting the command: /usr/bin/xzless: line 49: test: 456 (GNU regular expressions): integer expression expected This is due to the fact that less -V prints a line like less 456 (GNU regular expressions) The error in the script "xzless" can be corrected by the appended patch. -- Best regards, Jörg-Volker. -- System Information: Debian Release: wheezy/sid APT prefers testing APT policy: (600, 'testing'), (500, 'unstable'), (5, 'experimental') Architecture: amd64 (x86_64) Kernel: Linux 3.6.6 (SMP w/2 CPU cores) Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968) Shell: /bin/sh linked to /bin/dash Versions of packages xz-utils depends on: ii libc6 2.13-35 ii liblzma5 5.1.1alpha+20120614-1 xz-utils recommends no packages. xz-utils suggests no packages. -- no debconf information Version of less package: ii less 456-1
--- xzless_5.1.1alpha+20120614-1 2012-06-18 00:57:54.000000000 +0200 +++ xzless 2012-11-17 18:03:32.826345911 +0100 @@ -46,7 +46,7 @@ LESSMETACHARS="$space$tab$nl'"';*?"()<>[|&^`#\$%=~' fi -if test "$(less -V | { read ver && echo ${ver#less }; })" -ge 429; then +if test "$(less -V | { read ver && ver=${ver#less } && echo ${ver%% *}; })" -ge 429; then # less 429 or later: LESSOPEN pipe will be used on # standard input if $LESSOPEN begins with |-. LESSOPEN="|-$xz -cdfq -- %s"