Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 70932 - lesspipe.sh uses unsupported tar option -I instead of -j
lesspipe.sh uses unsupported tar option -I instead of -j
Product: Red Hat Linux
Classification: Retired
Component: less (Show other bugs)
i386 Linux
medium Severity low
: ---
: ---
Assigned To: Karsten Hopp
Mike McLean
Depends On:
  Show dependency treegraph
Reported: 2002-08-06 21:58 EDT by Todd
Modified: 2007-04-18 12:45 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2002-08-06 21:58:31 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Todd 2002-08-06 21:58:27 EDT
From Bugzilla Helper:
User-Agent: Mozilla/5.0 Galeon/1.2.5 (X11; Linux i686; U;) Gecko/0

Description of problem:
The script /usr/bin/lesspipe.sh uses an old, unsupported tar option for bzipped
files.  It uses the old 'I' option which is no longer supported.  It should use
'j' instead.  This causes less file.tar.bz2 to display as garbage.

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. less /path/to/some/file.tar.bz2

Actual Results:  the file is displayed in less as garbage

Expected Results:  list of tarball's contents should be displayed

Additional info:

Here is the amazingly complicated patch to lesspipe.sh to restore proper bzip2

--- /usr/bin/lesspipe.sh.orig	Tue Aug  6 21:47:31 2002
+++ /usr/bin/lesspipe.sh	Tue Aug  6 21:47:43 2002
@@ -22,7 +22,7 @@
 	fi ;;
   *.tar) tar tvvf "$1" ;;
   *.tgz|*.tar.gz|*.tar.[zZ]) tar tzvvf "$1" ;;
-  *.tar.bz2|*.tbz2) tar tIvvf "$1" ;;
+  *.tar.bz2|*.tbz2) tar tjvvf "$1" ;;
   *.[zZ]|*.gz) gzip -dc -- "$1" ;;
   *.bz2) bzip2 -dc -- "$1" ;;
   *.zip) zipinfo -- "$1" ;;

Note You need to log in before you can comment on or make changes to this bug.