Bug 70932 - lesspipe.sh uses unsupported tar option -I instead of -j
lesspipe.sh uses unsupported tar option -I instead of -j
Status: CLOSED RAWHIDE
Product: Red Hat Linux
Classification: Retired
Component: less (Show other bugs)
7.3
i386 Linux
medium Severity low
: ---
: ---
Assigned To: Karsten Hopp
Mike McLean
:
Depends On:
Blocks:
  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:
Environment:
Last Closed: 2002-08-06 21:58:31 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
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):
less-358-24

How reproducible:
Always

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
functionality:

--- /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.