Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 22 - less command (lesspipe.sh) and xxx.tar.bz2
Summary: less command (lesspipe.sh) and xxx.tar.bz2
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High minor
Assignee: Daniel Robbins (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-01-04 19:11 UTC by Michael Tartsch
Modified: 2003-02-04 19:42 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 ;;