![](https://seccdn.libravatar.org/avatar/e0854175dfba18e9adc5a9e99f843401.jpg?s=120&d=mm&r=g)
On Wed, 8 Apr 2009, Carlos E. R. wrote:-
I assume that entering:
case $i in *.bz2) uncompress=bzip2 ;; case $i in ^^^^^^^^^^ Not if you include this line. Remove it and it'll work.
*.lzma) uncompress=lzma ;;
<Snip>
Still, we would need to patch more utilities:
* /usr/bin/zcat
Only handles gzip files. bzcat and lzcat are the bzip2 and lzma equivalents.
* /usr/bin/zcmp
A wrapper for zdiff. bzcat and lzcat are the bzip2 and lzma equivalents.
* /usr/bin/zdiff
Only handles compress or gzip files. bzdiff and lzdiff are the bzip2 and lzma equivalents.
* /usr/bin/zegrep
A wrapper for zgrep. bzegrep and lzegrep are the bzip2 and lzma equivalents.
* /usr/bin/zfgrep
A wrapper for zgrep. bzfgrep and lzfgrep are the bzip2 and lzma equivalents.
* /usr/bin/zforce
Only handles compress or gzip files. No bzip2 or lzma equivalents.
* /usr/bin/zgrep
Only handles gzip or bzip2 files. The above lines will patch it to add lzma support. Also, bzgrep and lzgrep are the bzip2 and lzma equivalents.
* /usr/bin/zless
Only handles gzip files. bzless and lzless are the bzip2 and lzma equivalents.
* /usr/bin/zmore
Only handles gzip files. bzmore and lzmore are the bzip2 and lzma equivalents.
* /usr/bin/znew
Converts "compress" compressed files to gzip. While not quite the equivalent, bznew re-compresses a gzip using bzip2 compression, and optionally leaves behind the gzip2 if the resultant file is larger. Regards, David Bolt -- Team Acorn: http://www.distributed.net/ OGR-NG @ ~100Mnodes RC5-72 @ ~1Mkeys/s openSUSE 10.3 32b | openSUSE 11.0 32b | | openSUSE 10.3 64b | openSUSE 11.0 64b | openSUSE 11.1 64b | openSUSE 10.3 PPC | RISC OS 3.6 | RISC OS 3.11 | TOS 4.02 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org