![](https://seccdn.libravatar.org/avatar/77cb4da5f72bc176182dcc33f03a18f3.jpg?s=120&d=mm&r=g)
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Wednesday, 2009-04-08 at 15:02 +0200, I wrote:
On Wednesday, 2009-04-08 at 14:23 +0200, Per Jessen wrote:
Alright Carlos, here you go - a patch for /usr/bin/zgrep to support lzma:
[...]
Hold on, zgrep is a script! I never noticed that. :-O
Then we could easily open a bugzilla request for the change... I'll try later.
My /usr/bin/zgrep must be different from yours. Your patch is: @@ -109,6 +109,9 @@ if test "${i##*.}" = "bz2" ; then uncompress="bzip2" fi + if test "${i##*.}" = "lzma" ; then + uncompress="lzma" + fi $uncompress -cdfq "$i" | if test $files_with_matches -eq 1; then $grep $opt "$pat" > /dev/null && printf "%s\n" "$i" but I can't find that section, both in 11.0 or 11.1. The code I have seems to be: for i do case $i in *.bz2) uncompress=bzip2 ;; *) uncompress=gzip ;; esac I assume that entering: case $i in *.bz2) uncompress=bzip2 ;; case $i in *.lzma) uncompress=lzma ;; *) uncompress=gzip ;; esac would work. Still, we would need to patch more utilities: * /usr/bin/zcat * /usr/bin/zcmp * /usr/bin/zdiff * /usr/bin/zegrep * /usr/bin/zfgrep * /usr/bin/zforce * /usr/bin/zgrep * /usr/bin/zless * /usr/bin/zmore * /usr/bin/znew (not knowing alll of them, just looked into the rpm list) - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) iEYEARECAAYFAkncpzcACgkQtTMYHG2NR9VEwQCbBiGjccfOc8KVAkhyIIWBbaUR YuAAniirKs/5pnsibPewntWf+lQwNd4R =0dge -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org