[PATCH] Properly dispaying log files from /var/log
- From: Marcin Garski <mgarski post pl>
- To: mc-devel gnome org
- Subject: [PATCH] Properly dispaying log files from /var/log
- Date: Sun, 09 Jan 2005 16:21:46 +0100
Hello,
This patch prevent displaying log files (like log.1) from /var/log
directory as a man pages. It's just a workaround, I'm working on the
better solutions but it will take me some more time.
--
Best Regards
Marcin Garski
--- mc.ext.in-orig 2005-01-09 16:07:10.000000000 +0100
+++ mc.ext.in 2005-01-09 16:09:40.000000000 +0100
@@ -150,7 +150,7 @@
regex/(([^0-9]|^[^\.]*)\.([1-9][A-Za-z]*|n)|\.man)$
Open=nroff @MAN_FLAGS@ @MANDOC@ %f | %var{PAGER:more}
- View=%view{ascii,nroff} nroff @MAN_FLAGS@ @MANDOC@ %f
+ View=%view{ascii,nroff} case %d in /var/log*) cat %f ;; *) nroff @MAN_FLAGS@ @MANDOC@ %f ;; esac
# Troff with me macros.
# Exception - "read.me" is not a nroff file.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]