Hi rob0, Oleg,
On Thu, 2005-06-23 at 17:43, /dev/rob0 wrote:
> The groff feature has been there for many years. I agree, it's an
> annoyance when viewing logrotate files, but it's minor and the benefit
> is worthwhile.
The problem with all this is that the file command does not reliably
test the file type inside b/gzipped files so we have to do some
trickery.
Does the attached patch fix the issue (adds a test for the location
/var/log)?
Leonard.
--
mount -t life -o ro /dev/dna /genetic/research
--- mc.ext.004 2005-06-08 15:34:17.000000000 +0200
+++ mc.ext 2005-06-23 23:07:05.000000000 +0200
@@ -310,11 +310,11 @@ regex/([^0-9]|^[^\.]*)\.([1-9][a-z]?|n)\
regex/([^0-9]|^[^\.]*)\.([1-9][a-z]?|n)\.bz$
Open=bzip -dc %f | nroff -c -Tlatin1 -mandoc | %var{PAGER:more}
- View=%view{ascii,nroff} bzip -dc %f | nroff -c -Tlatin1 -mandoc
+ View=%view{ascii,nroff} case %d in /var/log*) bzip -dc %f ;; *) bzip -dc %f | nroff -c -Tlatin1 -mandoc ;; esac
regex/([^0-9]|^[^\.]*)\.([1-9][a-z]?|n)\.bz2$
Open=bzip2 -dc %f | nroff -c -Tlatin1 -mandoc | %var{PAGER:more}
- View=%view{ascii,nroff} bzip2 -dc %f | nroff -c -Tlatin1 -mandoc
+ View=%view{ascii,nroff} case %d in /var/log*) bzip2 -dc %f ;; *) bzip2 -dc %f | nroff -c -Tlatin1 -mandoc ;; esac
### Images ###
_______________________________________________
Mc mailing list
http://mail.gnome.org/mailman/listinfo/mc