Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 22

Summary: less command (lesspipe.sh) and xxx.tar.bz2
Product: Gentoo Linux Reporter: Michael Tartsch <gentoo>
Component: [OLD] Core systemAssignee: Daniel Robbins (RETIRED) <drobbins>
Status: RESOLVED FIXED    
Severity: minor    
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Michael Tartsch 2002-01-04 19:11:00 UTC
lesspipe.sh seems to come from portage pack.
right ?

less xxx.tar.bz2
does not work 
like
less xxx.tar.gz

source of the problem is probably the order in 
lesspipe case 
instruction

  *.bz2) bzip2 -dc $1 2>/dev/null ;;
  *.tar) tar tvvf $1 2>/dev/null ;;
  
*.tar.bz2) tar tjvvf $1 2>/dev/null ;;
  *.tbz2) tar tjvvf $1 2>/dev/null ;;
  ..
  *.z) gzip -dc 
$1  2>/dev/null ;;
  *.Z) gzip -dc $1  2>/dev/null ;;
  *.tar.z) tar tzvvf $1 2>/dev/null ;;
  
*.tar.Z) tar tzvvf $1 2>/dev/null ;;

 should be 
  *.tar.bz2) tar tjvvf $1 2>/dev/null ;;
  
*.bz2) bzip2 -dc $1 2>/dev/null ;;
  *.tar) tar tvvf $1 2>/dev/null ;;
  *.tbz2) tar tjvvf $1 
2>/dev/null ;;
  ..
  *.tar.z) tar tzvvf $1 2>/dev/null ;;
  *.tar.Z) tar tzvvf $1 2>/dev/null 
;;
  *.z) gzip -dc $1  2>/dev/null ;;
  *.Z) gzip -dc $1  2>/dev/null ;;